ts-ds-algo
v1.3.3
Published
ds-ts-algo is a typescript written package that allow users to use different pre-made data structures and algorithms in their javascript/typescript projects.
Downloads
24
Maintainers
Readme
ds-ts-algo
ds-ts-algo is a typescript written utility package that allows users to use different pre-made data structures and algorithms in their javascript/typescript projects.
Data Structure included:
- Stack
- Set
- Queue
- Linked List
- Doubly Linked List
- Graph
Algorithms included:
Search:
- Binary Search
- Linear Search
Sort:
- QuickSort
- HeapSort
- InsertionSort
- SelectionSort
- BubbleSort
Usage:
//use this for acessing search algorithms
import { searchAlgos } from "ds-ts-algo"; // es modules
const { searchAlgos } = require("ds-ts-algo"); //commanjs
const {/* Destructure the search Algorithms*/} = searchAlgos;
//use this for acessing sort algorithms
import { sortAlgos } from "ds-ts-algo"; // es modules
const { sortAlgos } = require("ds-ts-algo"); //commanjs
const {/* Destructure the sort Algorithms*/} = sortAlgos;
//use this for acessing data structures
import { dataStructures } from "ds-ts-algo"; // es modules
const { dataStructures } = require("ds-ts-algo"); //commanjs
const {/* Destructure the data Structures*/} = dataStructures;