๐ฏ A curated collection of my solutions to LeetCode problems, organized by topic and difficulty level.
๐ก Includes clean, well-documented code and detailed explanations โ perfect for revision and interview prep!
- ๐ Daily/Weekly practice log
- ๐งช Prepare effectively for technical interviews
- ๐งฐ Build a personal reference of clear solutions
This repo is mainly for personal use, but feel free to fork or star it if you find it helpful!
Want to suggest a better solution or a tough new problem? PRs are welcome. ๐
If this repo helped you, give it a โญ and share the word!
| Category | Examples |
|---|---|
| ๐ข Arrays & Sliding Window | Two Sum, Kadaneโs Algorithm, Sliding Window Maximum |
| ๐งต Strings & Pattern Matching | Longest Substring Without Repeating, KMP, Group Anagrams |
| ๐ Dynamic Programming | Climbing Stairs, Longest Increasing Subsequence, 0/1 Knapsack |
| ๐บ๏ธ Graph Algorithms | DFS, BFS, Dijkstra, Topological Sort, Union-Find |
| ๐ฒ Tree Algorithms | Inorder Traversal, Lowest Common Ancestor, Serialize & Deserialize Tree |
| ๐ Greedy | Jump Game, Merge Intervals, Gas Station |
| ๐ Backtracking | N-Queens, Sudoku Solver, Subsets, Permutations |
| โ๏ธ Binary Search | Search in Rotated Array, Koko Eating Bananas |
| ๐งฎ Math & Number Theory | GCD, Sieve of Eratosthenes, Modular Arithmetic |
| ๐ข Bit Manipulation | Single Number, Hamming Weight, Bitwise AND of Range |
| ๐ง Recursion & Divide & Conquer | Merge Sort, Quick Sort, Pow(x, n) |
| Structure | Examples |
|---|---|
| ๐ฆ Arrays & Lists | Array Manipulation, Two Pointers, Prefix Sum |
| ๐งต Strings | Palindrome Check, Reversal, Character Count |
| ๐ฒ Binary Trees | Traversals (Inorder, Preorder, Postorder), Balanced Trees |
| ๐ณ Binary Search Trees (BST) | Insert, Delete, Validate BST |
| ๐ Heaps & Priority Queues | Kth Largest Element, Merge K Sorted Lists |
| ๐๏ธ Hash Tables & Sets | Two Sum, Longest Consecutive Sequence, Isomorphic Strings |
| ๐ Stacks & Queues | Valid Parentheses, Min Stack, Implement Queue using Stacks |
| ๐ Linked Lists | Reverse Linked List, Detect Cycle, Merge Two Lists |
| ๐งญ Graphs | Adjacency List/Matrix, Topological Sort, Connected Components |