There is no official number of LeetCode problems you need to solve for a coding interview. Neither source we checked, a university career office and a conference study, gives a required count. The useful question is not how many problems you have solved, but whether you can solve a new problem of a familiar type, out loud, within the time an interviewer gives you.
This guide explains why a count is a weak target, what to track instead, and gives a four-week plan you can adjust to your own deadline. The plan is our suggestion, not a rule from any company.
What the sources say
Binghamton University's career office says LeetCode is "heard very frequently as a prep tool for coding interviews", and quotes interviewer Anthony D. Mays saying that many common LeetCode preparation strategies are ineffective. The page names three: spending nearly all your study time memorizing problems and solutions, concentrating only on the hardest problems, and jumping at the first solution you think of. It also says interviewers rarely reuse problems and give them to assess how candidates solve problems. The page gives no problem count.
Researchers at North Carolina State University, the University of Virginia and the University of North Carolina Wilmington studied more than 300,000 LeetCode user profiles to give insight into the effort preparation needs. Their conference abstract states the sample size and the goal, but no target number, so we do not quote one from it.
Why a count is a weak target
- Problems are not equal. Ten easy problems of one type teach less than three mixed ones you struggled with.
- Re-reading a solution is not solving. If you read the answer after five minutes, you practiced reading.
- Interviews are spoken. A solved problem that you never explained aloud leaves out a skill the interviewer is scoring. See our guide on how to think out loud in a coding interview.
- New problems are the test. Memorized answers do not help when the interviewer changes a detail.
What to track instead
- Patterns you can name. Keep a list of the common types (hash map lookups, two pointers, sliding window, binary search, trees, graphs, dynamic programming). Our coding patterns chapter is a starting list.
- Cold solves. Count only problems you solved without looking at hints, with a timer. Keep this count separately from "attempted".
- Redo rate. Return to a problem you missed after a few days (the interval is our suggestion). If you can solve it again from scratch, mark it learned.
- Spoken runs. Count the problems where you explained your approach aloud, including test cases and cost.
A four-week plan we suggest
- Week 1, foundations: Easy problems on arrays, strings and hash maps. Aim to solve each one cold, then write one sentence on why the approach works.
- Week 2, patterns: Two pointers, sliding window and binary search. Use the sliding window and two pointers chapter, then solve medium problems of those types.
- Week 3, structures: Trees and graphs, using the trees and binary search chapter and the graph algorithms chapter. Start redoing the problems you missed in weeks 1 and 2.
- Week 4, interview conditions: Timed, spoken rounds with mixed problems. Add dynamic programming from the dynamic programming chapter if your target roles ask for it.
How many problems this adds up to depends on your hours and your starting point. If you have less than four weeks, keep the order and cut the number of problems per pattern, not the spoken practice.
When you can stop a pattern
- You solve a new medium problem of that type, cold, within the time limit.
- You can say the brute-force approach, why it is slow and the better one, without notes.
- You can state time and space cost and name one edge case you would test.
Practice out loud
Solving problems in a browser tab trains typing, not talking. In a mock interview, an AI interviewer asks the question aloud and listens to your spoken answer. Hoppers mock interviews include a technical coding mode that scores problem solving, code quality, algorithms and communication. The free plan includes 60 minutes in total, with each session capped at 15 minutes, so you can try one short round before deciding how to spend your remaining practice time.
Limits to keep in mind
- No problem count guarantees an offer. Preparation raises your odds, nothing more.
- Companies and roles differ. Some rounds are take-home or online assessments with no interviewer, so ask your recruiter about the format.
- Some roles lean on system design or behavioral rounds more than coding. Split your time to match your loop.
- If your first step is an online test, read how to pass an online coding assessment.
- Use Hoppers to practice. In a real interview, follow the company's rules on tools and outside help.
FAQ
Is 100 problems enough?
It depends on what you did with them. One hundred problems solved cold, redone after a gap and explained aloud is stronger preparation than a larger count of problems you read the answer to. There is no threshold we can source.
Should I do easy, medium or hard problems?
Binghamton's source warns against concentrating only on the most difficult problems. Our suggestion, not a sourced rule: mostly easy and medium problems, with a few hard ones once the patterns are solid.
How many problems per day?
Pick a number you can keep for the whole plan. One problem done properly (timer, spoken, reviewed) beats three rushed ones.
Sources
- Binghamton University career tools, Mastering technical coding interviews: LeetCode as a common prep tool, three ineffective strategies, interviewers assess how you solve problems.
- Cui, Zhang, Zhou, Li, Song and Gehringer, How Much Effort Do You Need to Expend on a Technical Interview? A Study of LeetCode Problem Solving Statistics (CSEE&T 2024): analysis of more than 300,000 LeetCode user profiles.
Ready to rehearse? Practice a coding mock interview out loud and see which pattern you cannot yet explain.