This is my repository where I keep all my Java solutions for LeetCode and DSA (Data Structures and Algorithms) problems.
I have organized all the questions into different phases so it is easy to practice and revise.
-
Phase 1: Arrays, Strings & Hashing
- Arrays
- Strings
- HashMap
- HashSet
- Prefix Sum
- Math
- Sorting
- Simulation
-
Phase 2: Two Pointers & Sliding Window
- Two Pointers
- Sliding Window
- Binary Search
-
Phase 3: Stack & Queue
- Stack
- Queue
- Monotonic Stack
-
Phase 4: Linked Lists & Trees
- Linked List
- Trees
- BST
- Heap
-
Phase 5: Graphs
- Graphs
- BFS
- DFS
- Union Find
- Topological Sort
-
Phase 6: Dynamic Programming & Advanced Topics
- Dynamic Programming
- Greedy
- Backtracking
- Trie
- Segment Tree
- Bit Manipulation
- Advanced
All files are named like Leetcode [Number] ∶ [Name] or the original question name so they are easy to find.