ts-ds-algo

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.

Usage no npm install needed!

<script type="module">
  import tsDsAlgo from 'https://cdn.skypack.dev/ts-ds-algo';
</script>

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;