How often are these problems asked?
Frequency scores are based on crowdsourced interview reports. A higher score means the problem has been reported more often in recent Baidu interviews.
Very Likely
75-100%
Likely
50-74%
Sometimes
25-49%
Rare
0-24%
Problem database last updated: June 20, 2025
9 problems · 0 Easy, 5 Medium, 4 Hard · Ranked #167 of 458
0 Easy
0% · avg 23%
5 Medium
56% · avg 59%
4 Hard
44% · avg 18%
Based on 9 reported problems, Baidu interviews are significantly harder than average - 44% Hard vs 18% across all companies. The majority (56%) of questions are Medium difficulty, which is typical for companies that want to see solid fundamentals without excessive trick questions.
Compared to the industry average, Baidu puts unusual emphasis on memoization (22.2% of problems, 13.7x the industry average), sliding-window (22.2% of problems, 4.7x the industry average), dynamic-programming (88.9% of problems, 4.5x the industry average). If you're short on time, these are the categories to double down on.
The most common topics are dynamic-programming (88.9%), array (44.4%), hash-table (22.2%), string (22.2%). Problems below are sorted by frequency, the ones at the top are asked most often.
| Problem | Difficulty | Frequency | Topics | |
|---|---|---|---|---|
Arithmetic Slices II - Subsequence Given an integer array nums, return the number of all the arithmetic subsequences of nums. | Hard | Very Likely | arraydynamic-programming | Solve |
Longest Substring with At Least K Repeating Characters Given a string s and an integer k, return the length of the longest substring of s such that the frequency of each character in this substring is greater than o... | Medium | Very Likely | hash-tablestringdivide-and-conquer | Solve |
Integer Replacement Given a positive integer n, you can apply one of the following operations: | Medium | Very Likely | dynamic-programminggreedybit-manipulation | Solve |
Split Array Largest Sum Given an integer array nums and an integer k, split nums into k non-empty subarrays such that the largest sum of any subarray is minimized. | Hard | Very Likely | arraybinary-searchdynamic-programming | Solve |
Arithmetic Slices An integer array is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the same. | Medium | Very Likely | arraydynamic-programmingsliding-window | Solve |
Zuma Game You are playing a variation of the game Zuma. | Hard | Very Likely | stringdynamic-programmingstack | Solve |
Out of Boundary Paths There is an m x n grid with a ball. The ball is initially at the position [startRow, startColumn]. You are allowed to move the ball to one of the four adjacent... | Medium | Very Likely | dynamic-programming | Solve |
Binary Tree Maximum Path Sum A path in a binary tree is a sequence of nodes where each pair of adjacent nodes in the sequence has an edge connecting them. A node can only appear in the sequ... | Hard | Very Likely | dynamic-programmingtreedepth-first-search | Solve |
Length of Longest Fibonacci Subsequence A sequence x1, x2, ..., xn is Fibonacci-like if: | Medium | Very Likely | arrayhash-tabledynamic-programming | Solve |
Arithmetic Slices II - Subsequence
SolveGiven an integer array nums, return the number of all the arithmetic subsequences of nums.
Longest Substring with At Least K Repeating Characters
SolveGiven a string s and an integer k, return the length of the longest substring of s such that the frequency of each character in this substring is greater than o...
Integer Replacement
SolveGiven a positive integer n, you can apply one of the following operations:
Split Array Largest Sum
SolveGiven an integer array nums and an integer k, split nums into k non-empty subarrays such that the largest sum of any subarray is minimized.
Arithmetic Slices
SolveAn integer array is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the same.
Zuma Game
SolveYou are playing a variation of the game Zuma.
Out of Boundary Paths
SolveThere is an m x n grid with a ball. The ball is initially at the position [startRow, startColumn]. You are allowed to move the ball to one of the four adjacent...
Binary Tree Maximum Path Sum
SolveA path in a binary tree is a sequence of nodes where each pair of adjacent nodes in the sequence has an edge connecting them. A node can only appear in the sequ...
Length of Longest Fibonacci Subsequence
SolveA sequence x1, x2, ..., xn is Fibonacci-like if:
Frequency scores are based on crowdsourced interview reports. A higher score means the problem has been reported more often in recent Baidu interviews.
Very Likely
75-100%
Likely
50-74%
Sometimes
25-49%
Rare
0-24%
Baidu interviews focus heavily on dynamic-programming, array, hash-table problems. If you're short on time, these are the categories to prioritize. The problems on this page are sorted by frequency, so start from the top and work your way down.
Beyond solving problems, practice explaining your approach. Baidu interviewers care about your thought process - how you break down a problem, consider edge cases, and evaluate tradeoffs between solutions. A clean O(n) solution you can explain clearly beats an O(log n) solution you can't articulate.
Looking for more companies? Browse all 458 companies in our directory, or sharpen your fundamentals with our free data structure visualizers and AI-powered DSA tutor.
Baidu has been reported to ask 9 distinct coding problems. The most common topics are dynamic-programming, array, hash-table. 0 are Easy difficulty, 5 are Medium, and 4 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.
Based on 9 reported problems, Baidu interviews are significantly harder than average - 44% Hard vs 18% across all companies. 56% of questions are Medium difficulty. Focus on the high-frequency Medium problems first, then work through the Hard ones.
Start with the highest-frequency problems listed on this page. Focus on the core topics: dynamic-programming, array, hash-table. Practice solving them under time pressure and explaining your approach out loud. Mock interviews with AI can simulate the real experience.
Simulate a real Baidu coding interview with an AI interviewer. Get a scorecard with specific feedback on your problem-solving, code quality, and communication.
Simulate a Baidu interview with AIarrow_forward