How Long Should a LeetCode Problem Take?

Target 20 minutes for an easy, 30 to 45 minutes for a medium, and about 60 minutes for a hard. When the clock passes your target, stop and read the solution.

Those are practice targets, not proof of skill. The point is to cap the time you lose on one problem.

Target time by difficulty

DifficultyFirst monthAfter steady practiceIn a real interview
Easy30 to 45 minutes10 to 20 minutes10 to 15 minutes
Medium60 to 90 minutes25 to 45 minutes20 to 25 minutes
Hard2 hours or more45 to 75 minutesRarely asked alone

The interview column is the one that matters. A 45 minute round usually holds one medium, or two problems if one is easy.

Candidates report that phone screens often pack two questions into 45 minutes. That leaves about 20 minutes each, including the explanation.

The stopping rule

Sitting on one problem for three hours teaches very little. Use a timer and a fixed limit.

  1. Spend 5 minutes reading the question and writing the input, the output and the edge cases.
  2. Spend 10 minutes finding an approach. Say it out loud before you type.
  3. Code it. If the whole attempt passes your target time, stop.
  4. Read the solution, understand it, then close it and write the code yourself.
  5. Add that problem to a list and redo it after one week.

Step 5 is the one most people skip. Re-solving a problem a week later is what moves it into memory.

Time yourself the way the interview does

Practice with no editor help. Turn off autocomplete, run nothing until you have finished writing, then test by hand.

The gap between untimed practice and a real round is usually 10 to 15 minutes per problem. Timed practice closes it.

How long it takes to get good

Most people need three to six months of daily practice. Mediums start to feel steady near the end of that range.

The starting point changes the number more than anything else.

Starting pointDaily timeTime to feel steady on mediums
Strong data structures background1 hour6 to 10 weeks
Working engineer, rusty on algorithms1 to 2 hours3 to 4 months
Self taught, new to algorithms2 hours5 to 8 months

Daily beats long weekend sessions. One hour every day teaches more than seven hours on a Sunday.

Progress is not smooth. Mediums feel impossible for several weeks, then a group of them becomes easy at once, because one pattern unlocked them all.

How many problems do you need

You do not need to finish the site. The library holds more than 3,000 problems and no interview covers that range.

Between 150 and 250 well chosen problems is the usual range, as long as you cover the patterns rather than picking at random.

GoalProblem countFocus
A single upcoming interview75 to 100The most common patterns only
A broad job search150 to 250Every pattern, with repeats
Steady long term skill300 or moreAdd contests and harder graph work

Fifteen patterns cover most questions. The largest share goes to sliding window, two pointers, and fast and slow pointers. Merge intervals, binary search, top k elements, trees, graphs and dynamic programming cover most of the rest.

How long is a LeetCode contest

A weekly contest runs for 90 minutes and holds four problems. Biweekly contests use the same format.

The problems get harder in order. Solving two inside the time is a solid result for most people.

Contests are useful for one thing above all. They train you to produce a working answer under a clock, which is exactly what an interview asks.

How to Prepare

TAGS
Coding Interview
CONTRIBUTOR
Arslan Ahmad
Arslan Ahmad
ex-FAANG engineering manager and author or Grokking series.

GET YOUR FREE

Coding Questions Catalog

Design Gurus Newsletter - Latest from our Blog
Boost your coding skills with our essential coding questions catalog.
Take a step towards a better tech career now!
Explore Answers
What kind of questions does Microsoft ask in an interview?
What is Shopify coding?
What are the 4 benefits of multithreading?
What is the full form of NDK?
What are the tips for coding interviews at logistics companies?
OOPS Full Form: Object Oriented Programming System
OOPS stands for Object Oriented Programming System, and the shorter form OOP stands for Object Oriented Programming, which means the same thing.
Related Courses
New
Grokking the AI System Design Interview course cover
Grokking the AI System Design Interview
Learn to design AI systems the way interviewers expect: classic ML products, LLM and RAG architectures, and agentic systems, all through the lens of the system design interview.
4.6
(3,192 learners)
Discounted price for Your Region

$99

Grokking the Coding Interview: Patterns for Coding Questions course cover
Grokking the Coding Interview: Patterns for Coding Questions
The 24 essential patterns behind every coding interview question. Available in Java, Python, JavaScript, C++, C#, and Go. The most comprehensive coding interview course with 543 lessons. A smarter alternative to grinding LeetCode.
4.6
Discounted price for Your Region

$197

Grokking Modern AI Fundamentals course cover
Grokking Modern AI Fundamentals
Master the fundamentals of AI today to lead the tech revolution of tomorrow.
4.1
Discounted price for Your Region

$72

Design Gurus logo
One-Stop Portal For Tech Interviews.
Copyright © 2026 Design Gurus, LLC. All rights reserved.