A comprehensive Java Data Structures & Algorithms (DSA) repository, structured topic-wise for learning, practice, revision, and interview preparation.
This repository contains well-organized Java implementations of core DSA concepts, following a clear progression from basics to advanced topics.
src/
βββ _1Array β Array problems
βββ _2String β String problems
βββ _3LinkedList β Linked List (Basics, Methods, PW)
βββ _4Stack β Stack (Basics & Questions)
βββ _5Queue β Queue & Deque
βββ _6Tree β Binary Tree & BST
βββ _7Hashing β HashSet, HashMap, TreeMap
βββ _8Heap β Heap (Min/Max Heap & Problems)
βββ _9Graph β Graph (BFS, DFS, Shortest Paths)
βββ _10PrefixSum β Prefix Sum techniques
βββ _11BitManipulation β Bit Manipulation
βββ _12SlidingWindow β Sliding Window problems
βββ _13Searching β Searching algorithms
βββ _14Sorting β Sorting algorithms & questions
βββ _15Greedy β Greedy algorithms
βββ _16Tries β Trie data structure
βββ _17SegmentTree β Segment Tree
βββ _18Recursion β Recursion basics
βββ _19BackTracking β Backtracking questions
βββ _20DynamicProgramming β Dynamic Programming (Memoization & Tabulation)
βββ COMPARATOR β Comparator & Lambda examples
- Arrays & Strings
- Linked List
- Stack & Queue
- Trees (Binary Tree & BST)
- Hashing
- Heap (Priority Queue)
- Graphs (BFS, DFS, Dijkstra, MST, etc.)
- Prefix Sum
- Sliding Window
- Searching & Sorting
- Bit Manipulation
- Recursion & Backtracking
- Greedy Algorithms
- Tries
- Segment Tree
- Dynamic Programming
- Language: Java
- IDE: IntelliJ IDEA
- Version Control: Git & GitHub
- π Build strong DSA fundamentals in Java
- π Prepare for coding interviews (FAANG / Product-based companies)
- π Practice problem-solving patterns
- π Quick revision before interviews
-
Clone the repository:
git clone https://github.com/anuragtiwari-stacks/JAVA_DSA.git
-
Open in IntelliJ IDEA
-
Navigate topic-wise inside
src/ -
Run and modify individual Java files
- β Core DSA topics implemented
- β Searching, Sorting, DP, Graphs covered
- β³ Continuous updates with new problems
Contributions are welcome!
- Improve existing solutions
- Add optimized approaches
- Enhance code readability and comments
If you find this repository helpful:
- β Star the repo
- π΄ Fork it
- π’ Share it
Happy Coding & DSA Practice! π»π₯