Welcome to my DSA Java Repository! 🌟 Here, you'll find a comprehensive collection of Data Structures and Algorithms implemented in Java, designed to help you learn, practice, and master problem-solving skills for coding interviews and competitive programming.
✔ Arrays & Strings – Manipulation, Searching, Sorting
✔ Linked Lists – Singly, Doubly, Circular
✔ Stacks & Queues – Implementations, Applications
✔ Trees – Binary Trees, BST, AVL, Heaps
✔ Graphs – BFS, DFS, Dijkstra, MST (Prim’s & Kruskal’s)
✔ Hash Tables – Hashing, Collision Handling
✔ Trie – Prefix-based searching
✔ Disjoint Set (Union-Find) – Path Compression, Union by Rank
✔ Sorting – QuickSort, MergeSort, HeapSort, RadixSort
✔ Searching – Binary Search, Ternary Search
✔ Recursion & Backtracking – N-Queens, Sudoku Solver
✔ Dynamic Programming – Knapsack, LCS, Fibonacci, Matrix Chain
✔ Greedy Algorithms – Fractional Knapsack, Job Scheduling
✔ Graph Algorithms – Topological Sort, Floyd-Warshall
✔ Bit Manipulation – Tricks & Problem-solving
✔ Sliding Window – Maximum Subarray, Longest Substring
✔ Two Pointers – Pair Sum, Triplets
✔ Fast & Slow Pointers – Cycle Detection
✔ Merge Intervals – Overlapping Ranges
✔ Cyclic Sort – Missing/Duplicate Numbers
- Clone the Repository
git clone https://github.com/your-username/DSA-Java.git
- Navigate to a Topic – Each folder contains well-commented code.
- Run & Test – Use any Java IDE (IntelliJ, Eclipse) or compile manually.
- Contribute – Found a bug? Want to optimize? PRs are welcome!
✅ Clean & Readable Code – Properly structured and documented.
✅ Interview-Ready – Covers FAANG-level problems.
✅ Regular Updates – New problems & optimizations added frequently.
✅ Beginner-Friendly – Step-by-step explanations for tough concepts.
🔹 Fork → Code → Pull Request
🔹 Follow Java Coding Standards
🔹 Add Comments for Better Understanding
🔹 Test Your Code Before Submitting
📖 Books: CLRS, Grokking Algorithms
🎥 YouTube: NeetCode, Abdul Bari
💻 Websites: LeetCode, GeeksforGeeks, Codeforces
📧 Email: [email protected]
🔗 LinkedIn: Nitinmehra09
🐦 Twitter: @nitinmehra_09
Keep Learning, Keep Growing! 🌱
⭐ Don’t forget to star the repo if you find it helpful! ⭐