Skip to content

LeetCode Problems

2,913 practice problems · Browse by topic and difficulty

Learn the coding interview patterns behind these problems, or see PhantomCodeAI vs LeetCode Premium.

More practice problems

Browse 62 additional practice problems
#TitleDifficulty
1Two SumEasy
2Add Two NumbersMedium
3Longest Substring Without Repeating CharactersMedium
4Median of Two Sorted ArraysHard
5Longest Palindromic SubstringMedium
6Zigzag ConversionMedium
7Reverse IntegerMedium
8String to Integer (atoi)Medium
9Palindrome NumberEasy
10Regular Expression MatchingHard
11Container With Most WaterMedium
12Integer to RomanMedium
13Roman to IntegerEasy
14Longest Common PrefixEasy
153SumMedium
163Sum ClosestMedium
17Letter Combinations of a Phone NumberMedium
184SumMedium
19Remove Nth Node From End of ListMedium
20Valid ParenthesesEasy
21Merge Two Sorted ListsEasy
22Generate ParenthesesMedium
23Merge k Sorted ListsHard
24Swap Nodes in PairsMedium
25Reverse Nodes in k-GroupHard
26Remove Duplicates from Sorted ArrayEasy
27Remove ElementEasy
28Find the Index of the First Occurrence in a StringEasy
29Divide Two IntegersMedium
30Substring with Concatenation of All WordsHard
31Next PermutationMedium
32Longest Valid ParenthesesHard
33Search in Rotated Sorted ArrayMedium
34Find First and Last Position of Element in Sorted ArrayMedium
35Search Insert PositionEasy
36Valid SudokuMedium
37Sudoku SolverHard
38Count and SayMedium
39Combination SumMedium
40Combination Sum IIMedium
41First Missing PositiveHard
42Trapping Rain WaterHard
43Multiply StringsMedium
44Wildcard MatchingHard
45Jump Game IIMedium
46PermutationsMedium
47Permutations IIMedium
48Rotate ImageMedium
49Group AnagramsMedium
50Pow(x, n)Medium

Page 1 of 59