Simplified implementation of common data structures and classic algorithms. All samples are written in Java.
- Linked List
- Stack
- Queue
- Tree
- Binary Search Tree
- Trie
- Segment Tree
- HashMap
- Heap
- Graph
- LRU Cache
- LFU Cache
- Binary Search
- Union and Find
git clone https://github.com/jojozhuang/dsa-java.git
mvn install
mvn test
Open the project in IntelliJ IDEA, compile and run the JUnit test cases.