This repository contains implementations of fundamental data structures in Java. Each data structure is implemented with efficiency in mind and includes explanations and example use cases.
- β Well-structured and optimized Java implementations.
- π Covers essential data structures such as:
- π Arrays
- π Linked Lists (Singly, Doubly, Circular)
- π₯ Stacks
- π Queues (Simple, Circular, Priority)
- π’ Hash Tables
- π³ Trees (Binary, BST, AVL, Heap, Trie)
- π Graphs (Adjacency List/Matrix, BFS, DFS, Dijkstra, A*)
- π Each data structure includes:
- π Implementation
- π Explanation
- π Example Usage
- β³ Complexity Analysis
- Clone the repository:
git clone https://github.com/HaithamAbuDraz/Data-Structures-Java.git
- Open the project in your preferred Java IDE.
- Compile and run the examples to explore different data structures.
Each data structure has its own package and class with detailed comments. You can navigate through the folders to find the required implementation.
Example usage for a Stack:
Stack<Integer> stack = new Stack<>();
stack.push(10);
stack.push(20);
System.out.println(stack.pop()); // Outputs: 20Contributions are welcome! Feel free to fork the repository and submit pull requests for improvements or additional data structures.