Skip to content

A collection of Data Structures and Algorithms implemented in Java. Documenting my DSA learning journey from the basics to advanced concepts with clean, well-structured code.

License

Notifications You must be signed in to change notification settings

VeeruYadav45/CodeRootsDSA

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📊 Data Structures & Algorithms in Java 🚀

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.


📌 What’s Inside?

🏗 Data Structures

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

Algorithms

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

🎯 Coding Patterns & 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


🛠 How to Use This Repo?

  1. Clone the Repository
    git clone https://github.com/your-username/DSA-Java.git
  2. Navigate to a Topic – Each folder contains well-commented code.
  3. Run & Test – Use any Java IDE (IntelliJ, Eclipse) or compile manually.
  4. Contribute – Found a bug? Want to optimize? PRs are welcome!

🚀 Why This Repo?

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.


🌟 Contribution Guidelines

🔹 Fork → Code → Pull Request
🔹 Follow Java Coding Standards
🔹 Add Comments for Better Understanding
🔹 Test Your Code Before Submitting


📚 Resources & References

📖 Books: CLRS, Grokking Algorithms
🎥 YouTube: NeetCode, Abdul Bari
💻 Websites: LeetCode, GeeksforGeeks, Codeforces


🤝 Connect With Me

📧 Email: [email protected]
🔗 LinkedIn: Nitinmehra09
🐦 Twitter: @nitinmehra_09


🎉 Happy Coding!

Keep Learning, Keep Growing! 🌱

Java
License


Don’t forget to star the repo if you find it helpful!


🚀 Let’s Crack DSA Together! 💻🔥

About

A collection of Data Structures and Algorithms implemented in Java. Documenting my DSA learning journey from the basics to advanced concepts with clean, well-structured code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%