ಪರಿಹಾರಗಳು
LeetCode ಪರಿಹಾರಗಳು, ಹಂತ ಹಂತವಾಗಿ ವಿವರಿಸಲಾಗಿದೆ
ನಾನು ಪರಿಹರಿಸಿದ 310 ಪ್ರಾಬ್ಲಮ್ಗಳು — ಪ್ರತಿಯೊಂದಕ್ಕೂ intuition, approach, ನನ್ನ accepted ಕೋಡ್, complexity, animated test cases ಮತ್ತು line-by-line debugger.
ಪರಿಹಾರಗಳ ವಿವರಣೆ ಇಂಗ್ಲಿಷ್ನಲ್ಲಿದೆ.
Array42
Hashing / Anagram
Prefix Sum
Two Pointers
- 202. Happy Numberಸುಲಭ
- 88. Merge Sorted Arrayಸುಲಭ
- 283. Move Zeroesಸುಲಭ
- 26. Remove Duplicates from Sorted Arrayಸುಲಭ
- 27. Remove Elementಸುಲಭ
- 125. Valid Palindromeಸುಲಭ
- 167. Two Sum II - Input Array Is Sortedಮಧ್ಯಮ
- 15. 3Sumಮಧ್ಯಮ
- 16. 3Sum Closestಮಧ್ಯಮ
- 18. 4Sumಮಧ್ಯಮ
- 11. Container With Most Waterಮಧ್ಯಮ
- 31. Next Permutationಮಧ್ಯಮ
- 80. Remove Duplicates from Sorted Array IIಮಧ್ಯಮ
- 189. Rotate Arrayಮಧ್ಯಮ
- 75. Sort Colorsಮಧ್ಯಮ
- 42. Trapping Rain Waterಕಠಿಣ
Kadane
- 53. Maximum Subarrayಮಧ್ಯಮ
Matrix
- 48. Rotate Imageಮಧ್ಯಮ
- 73. Set Matrix Zeroesಮಧ್ಯಮ
- 54. Spiral Matrixಮಧ್ಯಮ
- 36. Valid Sudokuಮಧ್ಯಮ
- 289. Game of Lifeಮಧ್ಯಮ
Sorting
- 56. Merge Intervalsಮಧ್ಯಮ
Cyclic Sort / Index Marking
Counting Sort
- 274. H-Indexಮಧ್ಯಮ
Moore Voting
Linear Scan
Design
String18
Two Pointers
Palindrome / Expand Around Center
String Matching (KMP / Rabin-Karp)
Hashing / Frequency
Parsing / Conversion
Math
- 50. Pow(x, n)ಮಧ್ಯಮ
- 7. Reverse Integerಮಧ್ಯಮ
Prefix / Misc
Sliding Window
Sliding Window14
Fixed Window
Variable Window – Longest
Variable Window – Shortest / Minimum
Counting Subarrays (Exactly K = AtMost K − AtMost K−1)
Window + Hashing (Multi-word)
Monotonic Queue
Prefix / Circular Window
Binary Search20
Basics / Lower & Upper Bound
Rotated Sorted Array
Peak / Check Mid Sides
Binary Search on Answer
2D Matrix
Two Sorted Arrays / Partition
Math / Missing Numbers
Design
Linked List20
Basics
Fast & Slow Pointers
Reversal
Merge
Palindrome
Reordering / Partition
- 86. Partition Listಮಧ್ಯಮ
Intersection
Deep Copy / Multilevel
Design
- 146. LRU Cacheಮಧ್ಯಮ
- 460. LFU Cacheಕಠಿಣ
Sorting
- 148. Sort Listಮಧ್ಯಮ
Arithmetic
- 2. Add Two Numbersಮಧ್ಯಮ
Stack & Queue18
Parentheses / Bracket Matching
Stack Simulation / String Processing
Expression Evaluation
Stack / Queue Design
Iterator (Stack-based)
Queue Simulation
Monotonic Stack – Next / Previous Greater or Smaller
Monotonic Stack – Greedy Removal
- 402. Remove K Digitsಮಧ್ಯಮ
Monotonic Stack – Contribution / Area
Tree33
Traversals (Recursive / Iterative)
DFS Basics
Root-to-Leaf Paths
BFS / Level Order
Lowest Common Ancestor / Distance
BST
Construction / Serialization
Heap8
Top K
Two Heaps
K-way Merge
Greedy + Heap / Scheduling
- 621. Task Schedulerಮಧ್ಯಮ
Recursion & Backtracking18
Recursion Basics
Subsets
- 78. Subsetsಮಧ್ಯಮ
- 90. Subsets IIಮಧ್ಯಮ
Combinations
Permutations
Generate / Build Strings
Partitioning
Constraint Satisfaction
Grid Search / Backtracking DFS
- 79. Word Searchಮಧ್ಯಮ
Greedy11
Sorting + Simple Greedy
Jump / Reachability
Local Choice / Two-pass
- 135. Candyಕಠಿಣ
Graph40
Graph Fundamentals / BFS
- 133. Clone Graphಮಧ್ಯಮ
- 200. Number of Islandsಮಧ್ಯಮ
Graph Fundamentals / DFS
Graph Fundamentals / DFS + DSU
Multi-Source BFS
State-Space BFS
Bipartite / 2-Coloring
Topological Sort / DAG
State-Space / Transformation BFS
Shortest Path / Dijkstra
Shortest Path / Floyd-Warshall
Minimum Spanning Tree
Union Find / DSU
Bridges / Articulation Points
Graph DP
Shortest Path / BFS-Dijkstra
Graph Fundamentals / DFS-BFS
Dynamic Programming52
1D / Fibonacci
Kadane / Subarray DP
State Machine / Stocks
Grid DP
Triangle / Pascal
0/1 Knapsack / Subset Sum
Unbounded Knapsack
- 322. Coin Changeಮಧ್ಯಮ
- 518. Coin Change IIಮಧ್ಯಮ
- 279. Perfect Squaresಮಧ್ಯಮ
String DP / Word Break
LCS
LIS
Palindrome / Interval DP
DP on Squares / Matrix
Game DP
- 1025. Divisor Gameಸುಲಭ
- 877. Stone Gameಮಧ್ಯಮ
DP on Array
- 403. Frog Jumpಕಠಿಣ