0% found this document useful (0 votes)
3 views7 pages

NeetCode 150

The document provides a list of the NeetCode 150 LeetCode problems, organized by algorithmic categories such as Arrays & Hashing, Two Pointers, Sliding Window, and more. Each category includes a selection of coding challenges aimed at preparing for technical interviews. For detailed explanations and solutions, users are directed to visit https://neetcode.io.

Uploaded by

quizday007
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views7 pages

NeetCode 150

The document provides a list of the NeetCode 150 LeetCode problems, organized by algorithmic categories such as Arrays & Hashing, Two Pointers, Sliding Window, and more. Each category includes a selection of coding challenges aimed at preparing for technical interviews. For detailed explanations and solutions, users are directed to visit https://neetcode.io.

Uploaded by

quizday007
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

NeetCode 150 LeetCode Problems

Introduction
This document lists the NeetCode 150 LeetCode problems, a curated set of coding chal-
lenges designed to prepare for technical interviews. The problems are organized by
algorithmic category for easy reference. For detailed explanations and solutions, visit
[Link]

1 Arrays & Hashing


1. Two Sum
2. Longest Consecutive Sequence
3. Product of Array Except Self
4. Top K Frequent Elements
5. Group Anagrams
6. Valid Anagram
7. Encode and Decode Strings
8. Longest Substring Without Repeating Characters
9. Valid Palindrome

2 Two Pointers
1. Valid Palindrome II
2. Two Sum II - Input Array Is Sorted
3. 3Sum
4. Container With Most Water
5. Trapping Rain Water

3 Sliding Window
1. Best Time to Buy and Sell Stock

1
2. Longest Repeating Character Replacement
3. Longest Substring with At Most K Distinct Characters
4. Maximum Number of Vowels in a Substring of Given Length
5. Minimum Window Substring

4 Stack
1. Valid Parentheses
2. Min Stack
3. Evaluate Reverse Polish Notation
4. Generate Parentheses
5. Daily Temperatures
6. Car Fleet
7. Largest Rectangle in Histogram

5 Binary Search
1. Binary Search
2. Search in Rotated Sorted Array
3. Find First and Last Position of Element in Sorted Array
4. Search a 2D Matrix
5. Koko Eating Bananas
6. Find Minimum in Rotated Sorted Array
7. Time Based Key-Value Store

6 Linked List
1. Reverse Linked List
2. Merge Two Sorted Lists
3. Reorder List
4. Remove Nth Node From End of List
5. Linked List Cycle
6. Merge k Sorted Lists
7. Find the Duplicate Number
8. LRU Cache

2
7 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. Serialize and Deserialize Binary Tree
7. Subtree of Another Tree
8. Construct Binary Tree from Preorder and Inorder Traversal
9. Validate Binary Search Tree
10. Kth Smallest Element in a BST
11. Lowest Common Ancestor of a Binary Search Tree
12. Implement Trie (Prefix Tree)
13. Add and Search Word - Data Structure Design

8 Heap / Priority Queue


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

9 Backtracking
1. Subsets
2. Combination Sum
3. Permutations
4. Subsets II
5. Combination Sum II
6. Word Search
7. Palindrome Partitioning

3
8. Letter Combinations of a Phone Number
9. N-Queens

10 Graphs
1. Number of Islands
2. Course Schedule
3. Course Schedule II
4. Redundant Connection
5. Number of Connected Components in an Undirected Graph
6. Graph Valid Tree
7. Word Ladder
8. Clone Graph
9. Pacific Atlantic Water Flow
10. Alien Dictionary
11. Network Delay Time

11 Advanced Graphs
1. Reconstruct Itinerary
2. Min Cost to Connect All Points
3. Swim in Rising Water
4. Cheapest Flights Within K Stops
5. Shortest Path in Binary Matrix

12 1-D Dynamic Programming


1. Climbing Stairs
2. Min Cost Climbing Stairs
3. House Robber
4. House Robber II
5. Longest Increasing Subsequence
6. Longest Common Subsequence
7. Coin Change
8. Coin Change 2

4
9. Target Sum
10. Unique Paths
11. Unique Paths II

13 2-D Dynamic Programming


1. Longest Palindromic Substring
2. Palindromic Substrings
3. Decode Ways
4. Maximum Product Subarray
5. Word Break
6. Regular Expression Matching
7. Edit Distance

14 Greedy
1. Maximum Subarray
2. Jump Game
3. Jump Game II
4. Gas Station
5. Hand of Straights
6. Merge Triplets to Form Target Triplet
7. Partition Labels
8. Valid Parenthesis String

15 Intervals
1. Meeting Rooms
2. Meeting Rooms II
3. Non-overlapping Intervals
4. Merge Intervals
5. Insert Interval
6. Minimum Interval to Include Each Query

5
16 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. Detect Squares

17 Bit Manipulation
1. Number of 1 Bits
2. Counting Bits
3. Reverse Bits
4. Missing Number
5. Sum of Two Integers
6. Single Number
7. Single Number II

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

19 Advanced Data Structures


1. Design Add and Search Words Data Structure
2. Design Underground System
3. LFU Cache
4. Range Sum Query - Immutable
5. Range Sum Query 2D - Immutable

6
20 Miscellaneous
1. Reverse Integer
2. String to Integer (atoi)
3. Palindrome Number
4. Container With Most Water
5. Letter Case Permutation
6. Longest Valid Parentheses
7. Basic Calculator
8. Group Anagrams
9. Minimum Window Substring
10. Find All Anagrams in a String

You might also like