A comprehensive JavaScript library implementing fundamental data structures and algorithms, designed to provide efficient and reusable solutions for developers.
- ๐ Arrays
- ๐ณ Trees
- Binary Tree
- Binary Search Tree
- AVL Tree
- Red-Black Tree
- ๐ฆ Stacks
- ๐ฎ Queues
- Standard Queue
- Priority Queue
- Circular Queue
- ๐ Linked Lists
- Singly Linked List
- Doubly Linked List
- Circular Linked List
- ๐ธ๏ธ Graphs
- Adjacency List
- Adjacency Matrix
- ๐บ๏ธ Hash Tables
- ๐ฒ Heaps
- Min Heap
- Max Heap
- ๐ Searching
- Linear Search
- Binary Search
- ๐ข Sorting
- Bubble Sort
- Quick Sort
- Merge Sort
- Insertion Sort
- ๐บ๏ธ Graph Algorithms
- Dijkstra's Shortest Path
- Breadth-First Search
- Depth-First Search
- ๐ณ Tree Traversals
- In-order
- Pre-order
- Post-order
# Clone the repository
git clone https://github.com/AjmalDevala/DataStructure_js.git
# Navigate to project directory
cd DataStructure-js
# Install dependencies
npm install
// Create a Binary Search Tree
const bst = new BinarySearchTree();
bst.insert(10);
bst.insert(5);
bst.insert(15);
// Perform operations
console.log(bst.search(5)); // Returns the node
bst.delete(10);
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.