Command Palette

Search for a command to run...

Module 43

The Core 100

One hundred problems from across the course that cover every major pattern, in an order that builds from easy foundations to hard capstones.

Advanced 2 lessons 100 curated problems ~20 min of lessons

After learning the patterns module by module, you need a single list to practise and revise from. The Core 100 picks, for each important pattern, the problems that teach it best, and orders them so each set builds on the last: 25 easy foundations, 55 medium core problems, and 20 hard capstones.

Every problem lives in its own module, with full lessons, traces and Java solutions, so marking it complete there counts here too. Use the lessons below to plan a schedule and a revision routine.

Best after: Pattern Recognition Drills

Unlocks next: 44. Interview Method and Simulation

Part 1

Learn the ideas

Set 1 · 25 problems

Foundation set (easy)

Set 2 · 55 problems

Core set (medium)

The patterns interviews ask most often. Aim for 30–40 minutes each; say the brute force first, then optimise.

  1. 1.Group AnagramsMediumModule 4Frequency Counting
  2. 2.Top K Frequent ElementsMediumModule 4Frequency Counting
  3. 3.Longest Consecutive SequenceMediumModule 4Hash Map Lookup (Complement)
  4. 4.Product of Array Except SelfMediumModule 5Prefix Sum
  5. 5.Subarray Sum Equals KMediumModule 5Prefix Sum + Hash Map
  6. 6.Maximum SubarrayMediumModule 2Kadane's Algorithm
  7. 7.3SumMediumModule 6Two Pointers: Opposite Ends
  8. 8.Container With Most WaterMediumModule 6Two Pointers: Opposite Ends
  9. 9.Longest Substring Without Repeating CharactersMediumModule 7Sliding Window: Variable Size
  10. 10.Longest Repeating Character ReplacementMediumModule 7Sliding Window: Variable Size
  11. 11.Remove Nth Node From EndMediumModule 9Dummy Head and Merging
  12. 12.Add Two NumbersMediumModule 9Dummy Head and Merging
  13. 13.Min StackMediumModule 10Combine Structures to Design
  14. 14.Daily TemperaturesMediumModule 10Monotonic Stack
  15. 15.Decode StringMediumModule 10Stack for Matching and Undo
  16. 16.Search in Rotated Sorted ArrayMediumModule 12Binary Search on an Index
  17. 17.Koko Eating BananasMediumModule 12Binary Search on the Answer
  18. 18.SubsetsMediumModule 14Backtracking
  19. 19.PermutationsMediumModule 14Backtracking
  20. 20.Combination SumMediumModule 14Backtracking
  21. 21.Word SearchMediumModule 14Backtracking
  22. 22.Kth Largest Element in an ArrayMediumModule 15Divide and Conquer
  23. 23.Merge IntervalsMediumModule 16Merge Intervals
  24. 24.Insert IntervalMediumModule 16Merge Intervals
  25. 25.Non-overlapping IntervalsMediumModule 16Greedy Choice
  26. 26.Meeting Rooms IIMediumModule 16Merge Intervals
  27. 27.Binary Tree Level Order TraversalMediumModule 17Tree BFS (Level Order)
  28. 28.Lowest Common Ancestor of a Binary TreeMediumModule 17Tree DFS
  29. 29.Construct Binary Tree from Preorder and InorderMediumModule 17Tree DFS
  30. 30.Validate Binary Search TreeMediumModule 18BST Ordering
  31. 31.Kth Smallest Element in a BSTMediumModule 18BST Ordering
  32. 32.K Closest Points to OriginMediumModule 19Top K with a Heap
  33. 33.Task SchedulerMediumModule 19Top K with a Heap
  34. 34.Implement Trie (Prefix Tree)MediumModule 20Trie (Prefix Tree)
  35. 35.Number of IslandsMediumModule 23Graph DFS and Flood Fill
  36. 36.Rotting OrangesMediumModule 22Graph BFS
  37. 37.Clone GraphMediumModule 23Graph DFS and Flood Fill
  38. 38.Course ScheduleMediumModule 24Topological Sort
  39. 39.Course Schedule IIMediumModule 25Topological Sort
  40. 40.Accounts MergeMediumModule 26Union-Find
  41. 41.Redundant ConnectionMediumModule 24Union-Find
  42. 42.Network Delay TimeMediumModule 27Dijkstra's Shortest Path
  43. 43.Cheapest Flights Within K StopsMediumModule 27Dijkstra's Shortest Path
  44. 44.Min Cost to Connect All PointsMediumModule 28Minimum Spanning Tree
  45. 45.House RobberMediumModule 291D Dynamic Programming
  46. 46.Word BreakMediumModule 291D Dynamic Programming
  47. 47.Unique PathsMediumModule 30Grid DP
  48. 48.Coin ChangeMediumModule 31Knapsack DP
  49. 49.Partition Equal Subset SumMediumModule 31Knapsack DP
  50. 50.Longest Increasing SubsequenceMediumModule 32Longest Increasing Subsequence
  51. 51.Longest Common SubsequenceMediumModule 32DP on Two Strings
  52. 52.Edit DistanceMediumModule 32DP on Two Strings
  53. 53.Jump GameMediumModule 34Greedy Choice
  54. 54.Gas StationMediumModule 34Greedy Choice
  55. 55.LRU CacheMediumModule 40Combine Structures to Design

Set 3 · 20 problems

Capstone set (hard)