NEETCODE
150
With Leetcode Question Nos
KEEP
GRINDING
GRINDING
[Link]
/echobash
/echobash
Problem Leetcode Question Difficulty Approach
Arrays & Hashing
Contains Duplicate 217 Easy
Valid Anagram 242 Easy
Two Sum 1 Easy
Group Anagrams 49 Medium
Top K Frequent Elements 347 Medium
Encode and Decode Strings 659 Medium
Product of Array Except Self 238 Medium
Valid Sudoku 36 Medium
Longest Consecutive Sequence 128 Medium
Two Pointers
Valid Palindrome 125 Easy
Two Sum II Input Array Is Sorted 167 Medium
3Sum 15 Medium
Container With Most Water 11 Medium
Trapping Rain Water 42 Hard
Sliding Window
Best Time to Buy And Sell Stock 121 Easy
Longest Substring Without
3 Medium
Repeating Characters
Longest Repeating Character
424 Medium
Replacement
Permutation In String 567 Medium
Minimum Window Substring 76 Hard
Sliding Window Maximum 239 Hard
[Link]
/echobash
Stack Approach
Valid Parentheses 20 Easy
Min Stack 155 Medium
Evaluate Reverse Polish Notation 150 Medium
Generate Parentheses 22 Medium
Daily Temperatures 739 Medium
Car Fleet 853 Medium
Largest Rectangle In Histogram 84 Hard
Binary Search
Binary Search 704 Easy
Search a 2D Matrix 74 Medium
Koko Eating Bananas 875 Medium
Find Minimum In Rotated Sorted Array 153 Medium
Search In Rotated Sorted Array 33 Medium
Time Based Key Value Store 981 Medium
Median of Two Sorted Arrays 4 Hard
Linked List
Reverse Linked List 206 Easy
Merge Two Sorted Lists 21 Easy
Linked List Cycle 141 Easy
Reorder List 143 Medium
Remove Nth Node From End of List 19 Medium
Copy List With Random Pointer 138 Medium
Add Two Numbers 2 Medium
Find The Duplicate Number 287 Medium
LRU Cache 146 Medium
Merge K Sorted Lists 23 Hard
Reverse Nodes In K Group 25 Hard
[Link]
/echobash
Trees
Invert Binary Tree 226 Easy
Maximum Depth of Binary Tree 104 Easy
Diameter of Binary Tree 543 Easy
Balanced Binary Tree 110 Easy
Same Tree 100 Easy
Subtree of Another Tree 572 Easy
Lowest Common Ancestor of a
235 Medium
Binary Search Tree
Binary Tree Level Order Traversal 102 Medium
Binary Tree Right Side View 199 Medium
Count Good Nodes In Binary Tree 1448 Medium
Validate Binary Search Tree 98 Medium
Kth Smallest Element In a Bst 230 Medium
Construct Binary Tree From
105 Medium
Preorder And Inorder Traversal
Binary Tree Maximum Path Sum 124 Hard
Serialize And Deserialize Binary Tree 297 Hard
Heap / Priority Queue
Kth Largest Element In a Stream 703 Easy
Last Stone Weight 1046 Easy
K Closest Points to Origin 973 Medium
Kth Largest Element In An Array 215 Medium
Task Scheduler 621 Medium
Design Twitter 355 Medium
Find Median From Data Stream 295 Hard
[Link]
/echobash
Backtracking
Subsets 78 Medium
Combination Sum 39 Medium
Combination Sum II 40 Medium
Permutations 46 Medium
Subsets II 90 Medium
Word Search 79 Medium
Palindrome Partitioning 131 Medium
Letter Combinations of a Phone Number 17 Medium
N Queens 51 Hard
Tries
Implement Trie Prefix Tree 208 Medium
Design Add And Search Words
211 Medium
Data Structure
Word Search II 212 Hard
Graphs
Number of Islands 200 Medium
Clone Graph 133 Medium
Max Area of Island 695 Medium
Pacific Atlantic Water Flow 417 Medium
Surrounded Regions 130 Medium
Rotting Oranges 994 Medium
Walls And Gates 286 Medium
Course Schedule 207 Medium
Course Schedule II 210 Medium
Redundant Connection 684 Medium
Number of Connected Components 323 Medium
In An Undirected Graph
Graph Valid Tree 261 Medium
Word Ladder 127 Hard
[Link]
/echobash
Advanced Graphs
Network Delay Time 743 Medium
Reconstruct Itinerary 332 Hard
Min Cost to Connect All Points 1584 Medium
Swim In Rising Water 778 Hard
Alien Dictionary 269 Hard
Cheapest Flights Within K Stops 787 Medium
1-D DP
Climbing Stairs 70 Easy
Min Cost Climbing Stairs 746 Easy
House Robber 198 Medium
House Robber II 213 Medium
Longest Palindromic Substring 5 Medium
Palindromic Substrings 647 Medium
Decode Ways 91 Medium
Coin Change 322 Medium
Maximum Product Subarray 152 Medium
Word Break 139 Medium
Longest Increasing Subsequence 300 Medium
Partition Equal Subset Sum 416 Medium
2-D DP
Unique Paths 62 Medium
Longest Common Subsequence 1143 Medium
Best Time to Buy And Sell Stock
309 Medium
With Cooldown
Coin Change II 518 Medium
Target Sum 494 Medium
Interleaving String 97 Medium
Longest Increasing Path In a Matrix 329 Hard
[Link]
/echobash
Greedy
Maximum Subarray 53 Medium
Jump Game 55 Medium
Jump Game II 45 Medium
Gas Station 134 Medium
Hand of Straights 846 Medium
Merge Triplets to Form Target Trip 1899 Medium
Partition Labels 763 Medium
Valid Parenthesis String 678 Medium
Intervals
Insert Interval 57 Medium
Merge Intervals 56 Medium
Non Overlapping Intervals 435 Medium
Meeting Rooms 252 Easy
Meeting Rooms II 253 Medium
Minimum Interval to Include Each Q 1851 Hard
Math & Geometry
Rotate Image 48 Medium
Spiral Matrix 54 Medium
Set Matrix Zeroes 73 Medium
Happy Number 202 Easy
Plus One 66 Easy
Pow(x, n) 50 Medium
Multiply Strings 43 Medium
Detect Squares 2013 Medium
[Link]
Bit Manipulation
Single Number 136 Easy
Number of 1 Bits 191 Easy
Counting Bits 338 Easy
Reverse Bits 190 Easy
Missing Number 268 Easy
Sum of Two Integers 371 Medium
Reverse Integer 7 Medium
[Link]
/echobash