Number | Problem Name | Solution |
---|---|---|
1 | Basic Calculator | Basic Calculator |
2 | Trapping Rain Water | Trapping Rain Water |
3 | Word Search II | Word Search II |
4 | Median of Two Sorted Arrays | Median of Two Sorted Arrays |
5 | Reverse Nodes in k-Group | Reverse Nodes in k-Group |
6 | ||
7 | ||
8 | ||
9 | ||
10 |
1. Sort Colors ✅
2. Find All Duplicates in an Array ✅
3. Missing Number ✅
4. Find Duplicate Number ✅
5. Remove Duplicates from Sorted Array ✅
6. Remove Duplicates from Sorted Array II ✅
7. Find K Closest Elements ✅
8. Find Missing Positive Integer
9. Find Peak Element ✅
10. Find the Maximum Sum Subarray (Kadane’s Algorithm) ✅
11. Kth Largest Element in an Array ✅
12. Top K Frequent Elements ✅
13. Longest Consecutive Sequence ✅
14. Find the Smallest Range Covering Elements from K Lists
15. Heapsort
16. Maximum Gap
17. Wiggle Sort II
1. Search in Rotated Sorted Array
2. Search in Rotated Sorted Array II
3. Find First and Last Position in a Sorted Array
4. Search Insert Position
5. Find Minimum in Rotated Sorted Array
6. Median of Two Sorted Arrays ✅
7. Search a 2D Matrix
1. Valid Palindrome ✅
2. Longest Substring Without Repeating Characters ✅
3. Find All Anagrams in a String ✅
4. Longest Palindromic Substring
5. Minimum Window Substring
1. Summary Ranges ✅
2. Merge Intervals ✅
3. Insert Interval ✅
4. Minimum Absolute Difference
5. Minimum Number of Arrows to Burst Balloons ✅
6. Maximum Number of Events That Can Be Attended
7. Intersection of Two Arrays II
1. Rotate Image
2. Set Matrix Zeroes
3. Spiral Matrix
4. Word Search
1.
2.
3. Find All Anagrams in a String ✅
4. Subarray Sum Equals K ✅
5. Minimum Size Subarray Sum ✅
6. Maximum Product Subarray ✅
7. Find First and Last Position in a Sorted Array
8. Count and Say ✅
1. Valid Anagram ✅
2. Ransom Note ✅
3. Group Anagrams ✅
4. Isomorphic Strings ✅
5. Two Sum ✅
6. Contains Duplicate II ✅
7. Happy Number ✅
8.
1. Valid Parentheses ✅
2. Min Stack ✅
3. Backspace String Compare
4. Simplify Path ✅
5. Evaluate Reverse Polish Notation ✅
6. Daily Temperatures
7. Decode String
8. Basic Calculator ✅
9. Car Fleet
10. Generate Parentheses
11. Asteroid Collision
12. Basic Calculator II
13. Maximum Frequency Stack
14. Longest Valid Parentheses
15. Largest Rectangle in Histogram
1. Reverse Linked List ✅
2. Merge Two Sorted Lists ✅
3. Linked List Cycle ✅
4. Middle of the Linked List ✅
5. Palindrome Linked List ✅
6. Remove Nth Node From End of List ✅
7. Copy List with Random Pointer ✅
8. Add Two Numbers ✅
9. Reorder List ✅
10. Swap Nodes in Pairs ✅
11. Odd Even Linked List ✅
12. Sort List ✅
13. Reverse Nodes in k-Group ✅
14. Merge K Sorted Lists ✅
15. LRU Cache ✅
1. Invert Binary Tree ✅
2. Same Tree ✅
3. Symmetric Tree ✅
4. Maximum Depth of Binary Tree
5. Balanced Binary Tree
6. Subtree of Another Tree
7. Lowest Common Ancestor of a Binary Search Tree
8. Diameter of Binary Tree
9. Path Sum
10. Count Complete Tree Nodes
11. Validate Binary Search Tree ✅
12. Kth Smallest Element in a BST
13. Construct Binary Tree from Preorder and Inorder Traversal
14. Binary Tree Level Order Traversal ✅
15. Binary Tree Zigzag Level Order Traversal
16. Binary Tree Right Side View
17. Count Good Nodes in Binary Tree
18. Flatten Binary Tree to Linked List
19. Path Sum II
20. Populating Next Right Pointers in Each Node II
21. Sum Root to Leaf Numbers
22. Minimum Absolute Difference in BST
23. Binary Tree Maximum Path Sum
24. Serialize and Deserialize Binary Tree
25. Recover Binary Search Tree
1. Implement Trie ✅
2. Design Add and Search Words Data Structure ✅
3. Longest Word in Dictionary ✅
4. Replace Words ✅
5. Word Search II ✅
1. Kth Largest Element in a Stream
2. Last Stone Weight
3. Kth Largest Element in an Array ✅
4. K Closest Points to Origin
5. Task Scheduler
6. Top K Frequent Words
7. Find K Closest Elements ✅
8. Merge K Sorted Lists
9. Find Median from Data Stream
10. Sliding Window Median
1. N-Queens
2. Sudoku Solver
3. Word Search
4. Subsets
5. Permutations
6. Combination Sum
7. Generate Parentheses
8. Palindrome Partitioning
9. Letter Combinations of a Phone Number
10. Restore IP Addresses
1. Flood Fill
2. Number of Islands
3. Max Area of Island
4. Clone Graph
5. Course Schedule
6. Course Schedule II
7. Pacific Atlantic Water Flow
8. Rotting Oranges
9. Surrounded Regions
10. Walls and Gates
11. Graph Valid Tree
12. Number of Connected Components in an Undirected Graph
13. Redundant Connection
14. Find Eventual Safe States
15. Network Delay Time
16. Path with Maximum Probability
17. Word Ladder
18. Shortest Path in a Grid with Obstacles Elimination
19. Alien Dictionary
20. Find Strongly Connected Components
1. Climbing Stairs ✅
2. Coin Change ✅
3. Word Break ✅
4. House Robber ✅
5. Edit Distance
6. Palindromic Substrings
7. 0/1 Knapsack Problem
8. Longest Common Subsequence
9. Longest Increasing Subsequence
10. Partition Equal Subset Sum
11. Decode Ways
12. Unique Paths
13. Maximal Square
14. Shortest Common Supersequence
15. Interleaving String
16. House Robber II
17.
1. Activity Selection Problem
2. Huffman Encoding
3. Minimum Platforms
4. Job Sequencing Problem
5. Jump Game
6. Gas Station ✅
7. Partition Labels
8. Dijkstra’s Algorithm
9. Trapping Rain Water ✅
10. Largest Rectangle in Histogram
11. Container With Most Water ✅
12. Reorganize String
1. Single Number
2. Number of 1 Bits
3. Counting Bits
4. Reverse Bits
5. Add Binary
6. Divide Two Integers
7.
8. Single Number II
9. Bitwise AND of Numbers Range
10. Palindrome Number
11. Plus One
12. Pow(x, n)
13.
14. Factorial Trailing Zeroes
15. Multiply Strings