Recently, a friend interviewed Baidu Java post, some of the written questions are relatively simple, here to share, we can discuss exchange in the comments ~

Tips:

1. There are 12 questions in total, which are relatively simple. As long as we think carefully, we can generally do it

The answer at the end of the article, encounter not, after thinking to see the answer

3, previously sent huawei and Ali algorithm post pen test questions, there is a need to see ha ~

Huawei: juejin. Cn/post / 684490… Baidu algorithm: juejin.cn/post/684490…

4. The topic is basically updated every day. The position and the company are not necessarily the same.

— — — — — — — the title — — — — — — — — —

——————————————— answer —————————————————— [1] quick sort

[12] 48

3123】 Sequential files

[4] Instruction – per – cycle

[5] 539

[6] O (n * log2 (n))

【 7 】 204

[8] A ^ (B * (c-d)) + (E/F)/((G + H))

【 9 】 / \

[10] 2

[11] 7

【 12 】 Tom

Attention + like + forwarding is indispensable!!