Skip to content

A comprehensive JavaScript library that provides robust implementations of essential data structures and algorithms, offering developers powerful tools for efficient coding and problem-solving.

Notifications You must be signed in to change notification settings

AjmalDevala/DataStructure_js

Repository files navigation

๐ŸŒ DataStructure.js

๐Ÿ“š Overview

A comprehensive JavaScript library implementing fundamental data structures and algorithms, designed to provide efficient and reusable solutions for developers.

๐Ÿš€ Features

Data Structures

  • ๐Ÿ“Š 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

Algorithms

  • ๐Ÿ” 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

๐Ÿ›  Installation

# Clone the repository
git clone https://github.com/AjmalDevala/DataStructure_js.git

# Navigate to project directory
cd DataStructure-js

# Install dependencies
npm install

๐Ÿ’ป Usage Example

// 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);

๐Ÿค Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ‘ค Author

Ajmal Devala ๐Ÿ‘จโ€๐Ÿ’ป

LinkedIn GitHub Email

๐Ÿ“„ License

Distributed under the MIT License. See LICENSE for more information.

About

A comprehensive JavaScript library that provides robust implementations of essential data structures and algorithms, offering developers powerful tools for efficient coding and problem-solving.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published