- Interview Questions
- /
- Baidu
Baidu LeetCode Interview Questions
Practice 39 real coding problems frequently asked in Baidu technical interviews. Master these questions to ace your next Baidu software engineering interview.
Top Topics at Baidu
Ace your Baidu interview with AI
Get real-time AI assistance during your actual interview. Invisible to screensharing.
Baidu Interview Problems
| Problem | DifficultyDiff | Action |
|---|---|---|
Palindromic Substrings 100% | MediumM | Solve→ |
Friends Of Appropriate Ages 95% | MediumM | Solve→ |
Group Shifted Strings 87% | MediumM | Solve→ |
Construct String With Repeat Limit 82% | MediumM | Solve→ |
Rotting Oranges 79% | MediumM | Solve→ |
K Closest Points to Origin 78% | MediumM | Solve→ |
Minimum Operations to Make Character Frequencies Equal 73% | HardH | Solve→ |
Zero Array Transformation III 73% | MediumM | Solve→ |
Clone Graph 72% | MediumM | Solve→ |
Koko Eating Bananas 71% | MediumM | Solve→ |
Open the Lock 68% | MediumM | Solve→ |
Zero Array Transformation II 67% | MediumM | Solve→ |
Binary Tree Zigzag Level Order Traversal 67% | MediumM | Solve→ |
Merge Sorted Array 65% | EasyE | Solve→ |
Trips and Users 65% | HardH | Solve→ |
Pow(x, n) 63% | MediumM | Solve→ |
Continuous Subarrays 60% | MediumM | Solve→ |
All Nodes Distance K in Binary Tree 60% | MediumM | Solve→ |
Flood Fill 58% | EasyE | Solve→ |
Remove Duplicates from Sorted Array 58% | EasyE | Solve→ |
Logger Rate Limiter 57% | EasyE | Solve→ |
Continuous Subarray Sum 52% | MediumM | Solve→ |
Insert Delete GetRandom O(1) 52% | MediumM | Solve→ |
Valid Number 50% | HardH | Solve→ |
Zigzag Conversion 46% | MediumM | Solve→ |
Pass your interview with AI assistance
Get real-time solutions during your actual coding interview. Invisible to screensharing.
Letter Combinations of a Phone Number 45% | MediumM | Solve→ |
Find the Index of the First Occurrence in a String 42% | EasyE | Solve→ |
Diameter of Binary Tree 38% | EasyE | Solve→ |
Integer to English Words 35% | HardH | Solve→ |
Longest Repeating Character Replacement 33% | MediumM | Solve→ |
Missing Ranges 29% | EasyE | Solve→ |
Find K Closest Elements 25% | MediumM | Solve→ |
Custom Sort String 24% | MediumM | Solve→ |
Search Insert Position 24% | EasyE | Solve→ |
Basic Calculator 24% | HardH | Solve→ |
Two Sum II - Input Array Is Sorted 23% | MediumM | Solve→ |
Valid Palindrome 23% | EasyE | Solve→ |
Insert Delete GetRandom O(1) - Duplicates allowed 23% | HardH | Solve→ |
Two Sum 22% | EasyE | Solve→ |
Similar Companies
Explore interview questions from other companies with similar interview patterns.
Frequently Asked Questions
What LeetCode problems does Baidu ask in interviews?
Baidu commonly asks 39 coding problems in technical interviews, including Palindromic Substrings, Friends Of Appropriate Ages, Group Shifted Strings. The difficulty breakdown is 10 Easy, 23 Medium, and 6 Hard problems.
How should I prepare for a Baidu coding interview?
Focus on the most frequently asked problems first, especially those with high frequency scores. Baidu interviews typically emphasize Array and String. Practice explaining your thought process while coding.
What is the difficulty level of Baidu coding interviews?
Based on our data, Baidu interviews include 10 Easy (26%), 23 Medium (59%), and 6 Hard (15%) problems.
Ready to ace your Baidu interview?
Join thousands of engineers who landed offers at top tech companies.
Get Started FreeNo credit card required