Here’s the list of NeetCode’s **Top 150 Questions** with links to the LeetCode problems:

Array & Hashing

  1. Two Sum
  2. Valid Anagram
  3. Contains Duplicate
  4. Product of Array Except Self
  5. Maximum Subarray
  6. Maximum Product Subarray
  7. Find Minimum in Rotated Sorted Array
  8. Search in Rotated Sorted Array
  9. 3Sum
  10. Container With Most Water

Two Pointers

  1. Valid Palindrome
  2. 3Sum
  3. Container With Most Water
  4. Trapping Rain Water
  5. Best Time to Buy and Sell Stock
  6. Longest Substring Without Repeating Characters
  7. Palindromic Substrings
  8. Longest Palindromic Substring
  9. Find Median of Two Sorted Arrays

Sliding Window

  1. Best Time to Buy and Sell Stock
  2. Longest Substring Without Repeating Characters
  3. Longest Repeating Character Replacement
  4. Permutation in String
  5. Minimum Window Substring
  6. Sliding Window Maximum

Stack

  1. Valid Parentheses
  2. Min Stack
  3. Generate Parentheses
  4. Daily Temperatures
  5. Evaluate Reverse Polish Notation
  6. Largest Rectangle in Histogram
  7. Car Fleet
  8. Binary Search Tree Iterator
  9. Basic Calculator II
  1. Binary Search
  2. Search 2D Matrix
  3. Koko Eating Bananas
  4. Find Minimum in Rotated Sorted Array
  5. Search in Rotated Sorted Array
  6. Time Based Key-Value Store
  7. Median of Two Sorted Arrays

Linked List

  1. Reverse Linked List
  2. Merge Two Sorted Lists
  3. Reorder List
  4. Remove Nth Node From End of List
  5. Copy List With Random Pointer
  6. Add Two Numbers
  7. Linked List Cycle
  8. Intersection of Two Linked Lists
  9. LRU Cache

Trees

  1. Maximum Depth of Binary Tree
  2. Same Tree
  3. Invert Binary Tree
  4. Binary Tree Maximum Path Sum
  5. Binary Tree Level Order Traversal
  6. Subtree of Another Tree
  7. Construct Binary Tree from Preorder and Inorder Traversal
  8. Validate Binary Search Tree
  9. Kth Smallest Element in a BST
  10. Lowest Common Ancestor of a Binary Tree

Tries

  1. Implement Trie (Prefix Tree)
  2. Design Add and Search Words Data Structure
  3. Word Search II

Heap / Priority Queue

  1. Kth Largest Element in an Array
  2. Task Scheduler
  3. Design Twitter
  4. Find Median from Data Stream
  5. Merge K Sorted Lists
  6. Top K Frequent Elements

Backtracking

  1. Subsets
  2. Combination Sum
  3. Permutations
  4. Word Search
  5. Palindrome Partitioning
  6. N-Queens

Graphs

  1. Number of Islands
  2. Clone Graph
  3. Max Area of Island
  4. Pacific Atlantic Water Flow
  5. Surrounded Regions
  6. Rotting Oranges
  7. Course Schedule
  8. Course Schedule II
  9. Alien Dictionary
  10. Graph Valid Tree
  11. Number of Connected Components in an Undirected Graph

1-D Dynamic Programming

  1. Climbing Stairs
  2. House Robber
  3. House Robber II
  4. Longest Palindromic Subsequence
  5. Palindromic Substrings
  6. Decode Ways
  7. Coin Change
  8. Longest Increasing Subsequence
  9. Partition Equal Subset Sum

2-D Dynamic Programming

  1. Unique Paths
  2. Longest Common Subsequence
  3. Word Break
  4. Combination Sum IV
  5. Minimum Path Sum
  6. Edit Distance
  7. Maximal Square
  8. Burst Balloons

Greedy

  1. Maximum Subarray
  2. Jump Game
  3. Jump Game II
  4. Gas Station
  5. Hand of Straights
  6. Merge Intervals
  7. Insert Interval
  8. Non-overlapping Intervals
  9. Meeting Rooms
  10. Meeting Rooms II

Intervals

  1. Merge Intervals
  2. Insert Interval
  3. Non-overlapping Intervals
  4. Meeting Rooms
  5. Meeting Rooms II

Math & Geometry

  1. Rotate Image
  2. Spiral Matrix
  3. Set Matrix Zeroes
  4. Happy Number
  5. Plus One
  6. Pow(x, n)
  7. Multiply Strings
  8. Rotate Array

Bit Manipulation

  1. Single Number
  2. Number of 1 Bits
  3. Counting Bits
  4. Reverse Bits
  5. Missing Number
  6. Sum of Two Integers

Advanced Topics (Hard)

  1. Reverse Nodes in k-Group
  2. Median of Two Sorted Arrays
  3. Trapping Rain Water
  4. Longest Valid Parentheses
  5. Regular Expression Matching
  6. Wildcard Matching
  7. Word Ladder
  8. Word Ladder II
  9. Edit Distance
  10. Maximum Flow (Not on LeetCode)
  11. Insert Interval
  12. Serialize and Deserialize Binary Tree
  13. Alien Dictionary
  14. Palindrome Pairs
  15. Maximal Rectangle
  16. First Missing Positive
  17. Largest Rectangle in Histogram
  18. N-Queens II

Cheers !!!

Comments (1)