Skip to content

Interview Solver

FeaturesPricingHelp
Sign In
FeaturesPricingHelpSign In
  1. Interview Questions
  2. /
  3. Problems

Most-asked coding interview problems

The 50 problems tagged by the most companies in our interview dataset. Each page lets you write and test a solution in Python or JavaScript in your browser, then walks through the approach from brute force to optimal.

ProblemPatternDifficultyCompanies
Two SumHash map of complementsEasy196
LRU CacheHash map + doubly linked listMedium196
Number of IslandsFlood fill (DFS/BFS on a grid)Medium189
Merge IntervalsSort, then sweepMedium183
Valid ParenthesesStack of open bracketsEasy180
Longest Palindromic SubstringExpand around centerMedium166
Longest Substring Without Repeating CharactersSliding window with last-seen indexMedium165
Best Time to Buy and Sell StockRunning minimumEasy163
Trapping Rain WaterTwo pointers with running maximumsHard161
Group AnagramsHash map keyed by a canonical formMedium156
Container With Most WaterTwo pointers from both endsMedium153
Maximum SubarrayKadane's algorithmMedium149
Search in Rotated Sorted ArrayBinary search on the sorted halfMedium149
Spiral MatrixShrinking boundariesMedium143
Rotting OrangesMulti-source BFSMedium142
String CompressionRead and write pointersMedium140
Valid PalindromeTwo pointers from both endsEasy137
Merge k Sorted ListsMin-heap of list headsHard135
Top K Frequent ElementsCount, then bucket by frequencyMedium135
Product of Array Except SelfPrefix and suffix productsMedium133
Rotate ImageTranspose, then reverse each rowMedium133
Roman to IntegerCompare each symbol with the nextEasy133
Course ScheduleTopological sort (Kahn’s algorithm)Medium132
Decode StringStack for nested structureMedium132
Sliding Window MaximumMonotonic dequeHard131
Climbing Stairs1D dynamic programmingEasy130
Merge Sorted ArrayTwo pointers from the backEasy129
3SumSort + two pointersMedium128
Median of Two Sorted ArraysBinary search on a partitionHard127
Basic Calculator IIRunning term with deferred additionMedium127
Longest Consecutive SequenceHash set, count from run startsMedium126
Word LadderBreadth-first search on an implicit graphHard126
Next PermutationRightmost ascent, swap, reverseMedium126
Add Two NumbersDigit-by-digit addition with a carryMedium125
Longest Common PrefixVertical scanEasy124
Letter Combinations of a Phone NumberBacktracking over choicesMedium124
Subarray Sum Equals KPrefix sums + hash map of countsMedium123
Generate ParenthesesBacktracking with constraintsMedium123
Coin ChangeBottom-up DP over amountsMedium123
Gas StationGreedy restart on deficitMedium123
Kth Largest Element in an ArrayQuickselectMedium122
Minimum Window SubstringVariable-size sliding window with countsHard120
Min StackStack with running minimumMedium120
Palindrome NumberReverse half the digitsEasy118
House Robber1D dynamic programmingMedium118
Basic CalculatorRunning sum with a stack of saved contextsHard118
Word SearchGrid backtracking (DFS)Medium117
Subsets IIBacktracking with duplicate skippingMedium117
Move ZeroesRead/write two pointersEasy116
All Nodes Distance K in Binary TreeTree to graph + BFSMedium116

Get live help in the real interview

Working solutions in real time during your actual interview. Invisible to screensharing.

Start Free Trial

No credit card required

Interview Solver
  • Home
  • About
  • Pricing
  • Sign in
  • Contact
  • Blog
  • Companion
  • Mobile
  • Help Center
  • Developers
  • Use Cases
  • Software Engineer
  • Product Manager
  • Misc
  • Privacy Policy
  • Terms and Conditions
  • Refund & Cancellation
  • Discord Community
  • Affiliate Program
  • Compare
  • All Comparisons
  • vs Final Round AI
  • vs UltraCode
  • vs Interview Coder
  • vs LockedIn AI
  • vs AI Apply
  • Free Tools
  • ATS Resume Checker
  • STAR Method Builder
  • Salary Lookup
  • Big O Cheat Sheet
  • Total Comp Calculator
  • View All →
  • Interview Questions
  • Google Questions
  • Amazon Questions
  • Microsoft Questions
  • Meta Questions
  • Apple Questions
  • TikTok Questions
  • View All →
© 2026 Interview Solver, Inc. All rights reserved.