Interview roadmap
NeetCode 150, solved in Java.
All 150 problems in roadmap order across 17 topics. 75 of them are tagged Blind 75 and 21 are Hard. Each one walks from brute force to the optimal data structure, with explanations, diagrams and complete Java code.
Overall progress
0 / 150
Easy0/28
Medium0/101
Hard0/21
- 1.Reverse Linked ListEasy#206
- 2.Merge Two Sorted ListsEasy#21
- 3.Reorder ListMedium#143
- 4.Remove Nth Node From End of ListMedium#19
- 5.Copy List With Random PointerMedium#138
- 6.Add Two NumbersMedium#2
- 7.Linked List CycleEasy#141
- 8.Find the Duplicate NumberMedium#287
- 9.LRU CacheMedium#146
- 10.Merge K Sorted ListsHard#23
- 11.Reverse Nodes in K GroupHard#25
- 1.Invert Binary TreeEasy#226
- 2.Maximum Depth of Binary TreeEasy#104
- 3.Diameter of Binary TreeEasy#543
- 4.Balanced Binary TreeEasy#110
- 5.Same TreeEasy#100
- 6.Subtree of Another TreeEasy#572
- 7.Lowest Common Ancestor of a BSTMedium#235
- 8.Binary Tree Level Order TraversalMedium#102
- 9.Binary Tree Right Side ViewMedium#199
- 10.Count Good Nodes in Binary TreeMedium#1448
- 11.Validate Binary Search TreeMedium#98
- 12.Kth Smallest Element in a BSTMedium#230
- 13.Construct Binary Tree from Preorder and Inorder TraversalMedium#105
- 14.Binary Tree Maximum Path SumHard#124
- 15.Serialize and Deserialize Binary TreeHard#297
- 1.Number of IslandsMedium#200
- 2.Clone GraphMedium#133
- 3.Max Area of IslandMedium#695
- 4.Pacific Atlantic Water FlowMedium#417
- 5.Surrounded RegionsMedium#130
- 6.Rotting OrangesMedium#994
- 7.Walls and GatesMedium#286
- 8.Course ScheduleMedium#207
- 9.Course Schedule IIMedium#210
- 10.Redundant ConnectionMedium#684
- 11.Number of Connected ComponentsMedium#323
- 12.Graph Valid TreeMedium#261
- 13.Word LadderHard#127
- 14.Reconstruct ItineraryHard#332
- 15.Min Cost to Connect All PointsMedium#1584
- 16.Network Delay TimeMedium#743
- 17.Swim in Rising WaterHard#778
- 18.Alien DictionaryHard#269
- 19.Cheapest Flights Within K StopsMedium#787
- 1.Climbing StairsEasy#70
- 2.Min Cost Climbing StairsEasy#746
- 3.House RobberMedium#198
- 4.House Robber IIMedium#213
- 5.Longest Palindromic SubstringMedium#5
- 6.Palindromic SubstringsMedium#647
- 7.Decode WaysMedium#91
- 8.Coin ChangeMedium#322
- 9.Maximum Product SubarrayMedium#152
- 10.Word BreakMedium#139
- 11.Longest Increasing SubsequenceMedium#300
- 12.Partition Equal Subset SumMedium#416
- 1.Unique PathsMedium#62
- 2.Longest Common SubsequenceMedium#1143
- 3.Best Time to Buy and Sell Stock with CooldownMedium#309
- 4.Coin Change IIMedium#518
- 5.Target SumMedium#494
- 6.Interleaving StringMedium#97
- 7.Longest Increasing Path in a MatrixHard#329
- 8.Distinct SubsequencesHard#115
- 9.Edit DistanceMedium#72
- 10.Burst BalloonsHard#312
- 11.Regular Expression MatchingHard#10