This project contains a collection of data structures implemented in TypeScript. It is designed to help developers understand and utilize common data structures in their TypeScript projects.
To install the package, use npm or yarn:
npm install ts-dsas
or
yarn add ts-dsas
Import the data structures you need in your TypeScript project:
import { Tree, Stack, Queue } from "ts-dsas";
const tree = new Tree<number>();
const stack = new Stack<number>();
const queue = new Queue<number>();
This package includes the following data structures:
- Stack
- Queue
- BinaryTree
- Tree
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
This project is licensed under the MIT License. See the LICENSE file for details.