Baidu Coding Interview Questions
We track 11 coding questions asked at Baidu, tagged with the algorithms and concepts they test. The most common: Dynamic Programming, Array, Binary Search, Divide and Conquer, Greedy.
Browse all 11 Baidu questions →Concept mix
Each question's weight is split evenly across its concepts, so the shares sum to 100%.
- Dynamic Programming30.7%
- Array16.2%
- Hash Table5.8%
- Sliding Window5.8%
- Divide and Conquer5.0%
- Binary Search4.5%
- Greedy4.5%
- Memoization4.5%
- String4.5%
- Binary Tree2.5%
- Other (7)16.0%
How many questions involve each concept
Share of all 11 tracked Baidu questions that touch each concept. Questions usually involve several, so these overlap.
- Dynamic Programming72.7%
- Array45.5%
- Binary Search18.2%
- Divide and Conquer18.2%
- Greedy18.2%
- Hash Table18.2%
- Memoization18.2%
- Sliding Window18.2%
- String18.2%
- Binary Tree9.1%
- Bit Manipulation9.1%
- Breadth-First Search9.1%
Where Baidu differs from the average company
Concept weight at Baidu relative to the average across all companies we track. Green means Baidu leans on it harder than most.
- Memoization15.0×
- Divide and Conquer6.3×
- Dynamic Programming5.0×
- Sliding Window3.9×
- Array0.84×
- String0.47×
Baidu specialties
Concepts that show up at Baidu but are rarely asked elsewhere. They are easy to get blindsided by.
Difficulty mix
Level split of the 11 tracked Baidu questions.
- Mid/Senior55% (6)
- Staff45% (5)
Every concept in Baidu interviews
| Concept | Questions | % of questions | Share of mix |
|---|---|---|---|
| Dynamic Programming | 8 | 72.7% | 30.7% |
| Array | 5 | 45.5% | 16.2% |
| Binary Search | 2 | 18.2% | 4.5% |
| Divide and Conquer | 2 | 18.2% | 5.0% |
| Greedy | 2 | 18.2% | 4.5% |
| Hash Table | 2 | 18.2% | 5.8% |
| Memoization | 2 | 18.2% | 4.5% |
| Sliding Window | 2 | 18.2% | 5.8% |
| String | 2 | 18.2% | 4.5% |
| Binary Tree | 1 | 9.1% | 2.5% |
| Bit Manipulation | 1 | 9.1% | 2.5% |
| Breadth-First Search | 1 | 9.1% | 2.0% |
| Depth-First Search | 1 | 9.1% | 2.5% |
| Matrix | 1 | 9.1% | 2.5% |
| Prefix Sum | 1 | 9.1% | 2.0% |
| Stack | 1 | 9.1% | 2.0% |
| Tree | 1 | 9.1% | 2.5% |
Practice a Baidu interview
Take a realistic AI-led mock interview with questions Baidu actually asks, with live voice and real feedback.
Start a mock interviewYour first interview is free · no credit card required