NeetCode 150 - Essential LeetCode Problems for FAANG Interviews

May 17, 2026 ยท View on GitHub

NeetCode 150 is a curated list of 150 essential LeetCode problems compiled by a Google engineer. This collection represents the most important algorithmic patterns and concepts frequently tested in FAANG and top tech company interviews. Each problem has been selected to maximize your interview preparation efficiency.

๐ŸŽฏ Perfect for FAANG Interview Preparation | ๐Ÿ”ฅ 150 Handpicked Problems | โœ… Pattern-Based Learning

NeetCode 150 Practice LeetCode NeetCode 150

Why NeetCode 150?

  • โœจ Curated by Industry Expert: Selected by a Google engineer based on real interview experience
  • ๐ŸŽฏ Maximum Coverage: Covers all major algorithmic patterns and data structures
  • โšก Efficient Preparation: Focus on quality over quantity - 150 problems vs. 2000+ on LeetCode
  • ๐Ÿ“ˆ Proven Success: Used by thousands to land offers at top tech companies
  • ๐ŸŽฅ Video Solutions: Comprehensive video explanations available for every problem

Problem Categories and Distribution

CategoryProblemsDifficulty DistributionKey Patterns
Arrays & Hashing92 Easy, 6 Medium, 1 HardTwo Pointers, Hash Maps, Prefix Sums
Two Pointers51 Easy, 4 MediumLeft-Right Pointers, Fast-Slow Pointers
Sliding Window62 Easy, 3 Medium, 1 HardFixed/Variable Window, String Problems
Stack72 Easy, 4 Medium, 1 HardMonotonic Stack, Expression Parsing
Binary Search72 Easy, 5 MediumSearch Space Reduction, Peak Finding
Linked List112 Easy, 8 Medium, 1 HardTwo Pointers, Reversal, Cycle Detection
Trees153 Easy, 10 Medium, 2 HardDFS, BFS, Tree Construction
Tries32 Medium, 1 HardPrefix Trees, Word Search
Heap/Priority Queue71 Easy, 5 Medium, 1 HardK-Elements, Merge Operations
Backtracking96 Medium, 3 HardPermutations, Combinations, Subsets
Graphs133 Medium, 10 HardDFS, BFS, Union Find, Topological Sort
Advanced Graphs66 HardShortest Path, MST, Advanced Algorithms
1-D Dynamic Programming121 Easy, 8 Medium, 3 HardState Transitions, Optimization
2-D Dynamic Programming118 Medium, 3 HardGrid DP, String DP
Greedy82 Easy, 4 Medium, 2 HardLocal Optimal Choices
Intervals51 Easy, 3 Medium, 1 HardMerging, Scheduling
Math & Geometry83 Easy, 4 Medium, 1 HardNumber Theory, Computational Geometry
Bit Manipulation73 Easy, 4 MediumBitwise Operations, XOR Tricks

๐Ÿ“‹ Complete Problem List

Arrays & Hashing (9 Problems)

No.ProblemDifficultyPatternCompany Tags
1Contains DuplicateEasyHash SetAll FAANG
2Valid AnagramEasyCharacter CountAll FAANG
3Two SumEasyHash MapAll FAANG
4Group AnagramsMediumHash Map, SortingGoogle, Amazon
5Top K Frequent ElementsMediumHeap, Hash MapAll FAANG
6Product of Array Except SelfMediumPrefix/Suffix ProductMeta, Apple
7Valid SudokuMediumHash Set, MatrixApple, Amazon
8Encode and Decode StringsMediumString ManipulationGoogle, Meta
9Longest Consecutive SequenceHardUnion Find, Hash SetGoogle, Meta

Two Pointers (5 Problems)

No.ProblemDifficultyPatternCompany Tags
10Valid PalindromeEasyTwo PointersMeta, Apple
11Two Sum II - Input Array Is SortedMediumTwo PointersAmazon, Google
123SumMediumTwo Pointers, SortAll FAANG
13Container With Most WaterMediumTwo PointersAll FAANG
14Trapping Rain WaterHardTwo PointersAmazon, Google

Sliding Window (6 Problems)

No.ProblemDifficultyPatternCompany Tags
15Best Time to Buy and Sell StockEasySingle PassAll FAANG
16Longest Substring Without Repeating CharactersMediumVariable WindowAll FAANG
17Longest Repeating Character ReplacementMediumVariable WindowGoogle, Meta
18Permutation in StringMediumFixed WindowMeta, Amazon
19Minimum Window SubstringHardVariable WindowMeta, Amazon
20Sliding Window MaximumHardDeque, Fixed WindowAmazon, Google

Stack (7 Problems)

No.ProblemDifficultyPatternCompany Tags
21Valid ParenthesesEasyStack MatchingAll FAANG
22Min StackMediumStack DesignAmazon, Apple
23Evaluate Reverse Polish NotationMediumStack EvaluationAmazon, Meta
24Generate ParenthesesMediumBacktracking, StackGoogle, Meta
25Daily TemperaturesMediumMonotonic StackAmazon, Google
26Car FleetMediumStack, SortingTesla, Amazon
27Largest Rectangle in HistogramHardMonotonic StackGoogle, Amazon

Binary Search (7 Problems)

No.ProblemDifficultyPatternCompany Tags
28Binary SearchEasyBasic Binary SearchAll FAANG
29Search a 2D MatrixMediumMatrix Binary SearchAmazon, Apple
30Koko Eating BananasMediumBinary Search on AnswerGoogle, Meta
31Find Minimum in Rotated Sorted ArrayMediumRotated ArrayAll FAANG
32Search in Rotated Sorted ArrayMediumRotated ArrayAll FAANG
33Time Based Key-Value StoreMediumBinary Search, DesignGoogle, Amazon
34Median of Two Sorted ArraysHardBinary Search, ArraysGoogle, Amazon

Linked List (11 Problems)

No.ProblemDifficultyPatternCompany Tags
35Reverse Linked ListEasyIterative/RecursiveAll FAANG
36Merge Two Sorted ListsEasyTwo PointersAll FAANG
37Reorder ListMediumMultiple PointersMeta, Amazon
38Remove Nth Node From End of ListMediumTwo PointersAmazon, Google
39Copy List with Random PointerMediumHash Map, CloningMeta, Amazon
40Add Two NumbersMediumSimulationMeta, Amazon
41Linked List CycleEasyFloyd's AlgorithmAll FAANG
42Find the Duplicate NumberMediumFloyd's AlgorithmAll FAANG
43LRU CacheMediumDesign, Hash MapAll FAANG
44Merge k Sorted ListsHardDivide & ConquerAll FAANG
45Reverse Nodes in k-GroupHardAdvanced ReversalMeta, Google

Trees (15 Problems)

No.ProblemDifficultyPatternCompany Tags
46Invert Binary TreeEasyDFS/BFSAll FAANG
47Maximum Depth of Binary TreeEasyDFS/BFSAll FAANG
48Diameter of Binary TreeEasyDFSAll FAANG
49Balanced Binary TreeEasyDFSAmazon, Apple
50Same TreeEasyDFS/BFSAll FAANG
51Subtree of Another TreeEasyDFSAmazon, Meta
52Lowest Common Ancestor of a Binary Search TreeMediumBST PropertyAll FAANG
53Binary Tree Level Order TraversalMediumBFSAll FAANG
54Binary Tree Right Side ViewMediumBFS/DFSAmazon, Meta
55Count Good Nodes in Binary TreeMediumDFSAmazon, Google
56Validate Binary Search TreeMediumDFS, BSTAll FAANG
57Kth Smallest Element in a BSTMediumInorder TraversalAll FAANG
58Construct Binary Tree from Preorder and Inorder TraversalMediumTree ConstructionAll FAANG
59Binary Tree Maximum Path SumHardDFS, Path SumAll FAANG
60Serialize and Deserialize Binary TreeHardTree SerializationAll FAANG

Tries (3 Problems)

No.ProblemDifficultyPatternCompany Tags
61Implement Trie (Prefix Tree)MediumTrie DesignAll FAANG
62Design Add and Search Words Data StructureMediumTrie, BacktrackingGoogle, Meta
63Word Search IIHardTrie, BacktrackingAll FAANG

Heap / Priority Queue (7 Problems)

No.ProblemDifficultyPatternCompany Tags
64Kth Largest Element in a StreamEasyMin HeapAll FAANG
65Last Stone WeightEasyMax HeapAmazon, Apple
66K Closest Points to OriginMediumMin HeapAll FAANG
67Kth Largest Element in an ArrayMediumQuickselect, HeapAll FAANG
68Task SchedulerMediumMax Heap, GreedyAll FAANG
69Design TwitterMediumHeap, DesignAmazon, Meta
70Find Median from Data StreamHardTwo HeapsAll FAANG

Backtracking (9 Problems)

No.ProblemDifficultyPatternCompany Tags
71SubsetsMediumBacktrackingAll FAANG
72Combination SumMediumBacktrackingAll FAANG
73PermutationsMediumBacktrackingAll FAANG
74Subsets IIMediumBacktracking, DuplicatesAmazon, Meta
75Combination Sum IIMediumBacktracking, DuplicatesAmazon, Google
76Word SearchMediumBacktracking, MatrixAll FAANG
77Palindrome PartitioningMediumBacktracking, StringAmazon, Google
78Letter Combinations of a Phone NumberMediumBacktrackingAll FAANG
79N-QueensHardBacktrackingGoogle, Amazon

Graphs (13 Problems)

No.ProblemDifficultyPatternCompany Tags
80Number of IslandsMediumDFS/BFSAll FAANG
81Clone GraphMediumDFS/BFS, CloningAll FAANG
82Max Area of IslandMediumDFSAmazon, Google
83Pacific Atlantic Water FlowMediumDFS/BFSGoogle, Amazon
84Surrounded RegionsMediumDFS/BFSAmazon, Google
85Rotting OrangesMediumBFSAmazon, Apple
86Walls and GatesMediumBFSGoogle, Meta
87Course ScheduleMediumTopological SortAll FAANG
88Course Schedule IIMediumTopological SortAll FAANG
89Redundant ConnectionMediumUnion FindGoogle, Amazon
90Number of Connected Components in an Undirected GraphMediumUnion Find/DFSGoogle, Meta
91Graph Valid TreeMediumUnion Find/DFSGoogle, Meta
92Word LadderHardBFSAll FAANG

Advanced Graphs (6 Problems)

No.ProblemDifficultyPatternCompany Tags
93Reconstruct ItineraryHardEulerian PathGoogle, Amazon
94Min Cost to Connect All PointsMediumMST (Prim's/Kruskal's)Amazon, Google
95Network Delay TimeMediumDijkstra's AlgorithmAmazon, Google
96Swim in Rising WaterHardDijkstra's/Binary SearchGoogle, Amazon
97Alien DictionaryHardTopological SortGoogle, Meta
98Cheapest Flights Within K StopsMediumBellman-Ford/Dijkstra'sGoogle, Amazon

1-D Dynamic Programming (12 Problems)

No.ProblemDifficultyPatternCompany Tags
99Climbing StairsEasyBasic DPAll FAANG
100Min Cost Climbing StairsEasyBasic DPAmazon, Apple
101House RobberMediumLinear DPAll FAANG
102House Robber IIMediumCircular Array DPAll FAANG
103Longest Palindromic SubstringMediumString DPAll FAANG
104Palindromic SubstringsMediumString DPAmazon, Google
105Decode WaysMediumString DPAll FAANG
106Coin ChangeMediumDP, GreedyAll FAANG
107Maximum Product SubarrayMediumDPAll FAANG
108Word BreakMediumString DPAll FAANG
109Longest Increasing SubsequenceMediumDP, Binary SearchAll FAANG
110Partition Equal Subset SumMediumSubset Sum DPAmazon, Google

2-D Dynamic Programming (11 Problems)

No.ProblemDifficultyPatternCompany Tags
111Unique PathsMediumGrid DPAll FAANG
112Longest Common SubsequenceMediumString DPAll FAANG
113Best Time to Buy and Sell Stock with CooldownMediumState Machine DPGoogle, Amazon
114Coin Change 2MediumUnbounded KnapsackAmazon, Google
115Target SumMediumSubset Sum DPGoogle, Meta
116Interleaving StringMediumString DPGoogle, Amazon
117Longest Increasing Path in a MatrixHardDFS + MemoizationGoogle, Amazon
118Distinct SubsequencesHardString DPGoogle, Amazon
119Edit DistanceHardString DPGoogle, Meta
120Burst BalloonsHardInterval DPGoogle, Amazon
121Regular Expression MatchingHardString DPAll FAANG

Greedy (8 Problems)

No.ProblemDifficultyPatternCompany Tags
122Maximum SubarrayMediumKadane's AlgorithmAll FAANG
123Jump GameMediumGreedyAll FAANG
124Jump Game IIMediumGreedyAll FAANG
125Gas StationMediumGreedyAmazon, Google
126Hand of StraightsMediumGreedy, Hash MapGoogle, Amazon
127Merge Triplets to Form Target TripletMediumGreedyGoogle, Amazon
128Partition LabelsMediumGreedyAmazon, Google
129Valid Parenthesis StringMediumGreedyGoogle, Meta

Intervals (5 Problems)

No.ProblemDifficultyPatternCompany Tags
130Insert IntervalMediumInterval MergeAll FAANG
131Merge IntervalsMediumInterval MergeAll FAANG
132Non-overlapping IntervalsMediumGreedyAmazon, Google
133Meeting RoomsEasySortingAll FAANG
134Meeting Rooms IIMediumHeap, GreedyAll FAANG

Math & Geometry (8 Problems)

No.ProblemDifficultyPatternCompany Tags
135Rotate ImageMediumMatrix ManipulationAll FAANG
136Spiral MatrixMediumMatrix TraversalAll FAANG
137Set Matrix ZeroesMediumMatrix ModificationAmazon, Apple
138Happy NumberEasyNumber TheoryGoogle, Apple
139Plus OneEasyArray ManipulationGoogle, Apple
140Pow(x, n)MediumFast ExponentiationAll FAANG
141Multiply StringsMediumString MathGoogle, Meta
142Detect SquaresMediumGeometryGoogle, Amazon

Bit Manipulation (7 Problems)

No.ProblemDifficultyPatternCompany Tags
143Single NumberEasyXORAll FAANG
144Number of 1 BitsEasyBit CountingAll FAANG
145Counting BitsEasyDP + BitsAll FAANG
146Reverse BitsEasyBit ReversalApple, Amazon
147Missing NumberEasyXOR/MathAll FAANG
148Sum of Two IntegersMediumBit ArithmeticApple, Amazon
149Reverse IntegerMediumInteger ManipulationAll FAANG

๐Ÿ“š Study Strategy

Week 1-2: Foundation (Arrays, Two Pointers, Sliding Window)

  • Master basic patterns with arrays and strings
  • Focus on understanding time/space complexity
  • Practice implementation without looking at solutions

Week 3-4: Data Structures (Stack, Linked Lists, Trees)

  • Learn fundamental data structure operations
  • Practice traversal algorithms (DFS, BFS)
  • Understand when to use each data structure

Week 5-6: Advanced Patterns (Backtracking, Graphs, Heaps)

  • Study complex algorithmic patterns
  • Practice problem decomposition
  • Learn to identify pattern similarities

Week 7-8: Dynamic Programming & Optimization

  • Start with 1D DP problems
  • Progress to 2D DP and advanced techniques
  • Focus on state transition understanding

Week 9-10: Final Topics & Review

  • Complete remaining categories
  • Review challenging problems
  • Take timed practice sessions

๐ŸŽฏ Success Tips

  1. Understand Patterns: Don't just memorize solutions - understand the underlying patterns
  2. Time Yourself: Practice under time constraints (20-30 minutes per problem)
  3. Code Without IDE: Practice writing code on paper or whiteboard
  4. Explain Solutions: Be able to articulate your approach and trade-offs
  5. Review Regularly: Revisit problems you found challenging
  6. Mock Interviews: Practice explaining your solution process

๐Ÿ”— Additional Resources


๐Ÿ”” You Found the Shortcut. Don't Lose It.

New questions, papers, and strategies drop here every single week โ€” before they surface anywhere else.

The engineers who land FAANG offers aren't the ones who find a resource โ€” they're the ones who never lose it.

โšก One click. Every update. Zero effort.

Watch Repo ย  Star Repo

Follow @ombharatiya for exclusive tips, paper breakdowns, and career moves that never make it into the repo:

GitHub Twitter LinkedIn