@codinasion/dsa
v1.0.2
Published
A collection of useful TypeScript functions and utilities for Data Structures and Algorithms
Downloads
2
Maintainers
Readme
@codinasion/dsa
A collection of useful TypeScript functions and utilities for Data Structures and Algorithms.
Installation
# if you're using pnpm
pnpm add @codinasion/dsa
# or, if you're using npm
npm install @codinasion/dsa
# or, if you're using yarn
yarn add @codinasion/dsa
Usage
import { BinarySearch } from "@codinasion/dsa";
const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9];
const result = BinarySearch(arr, 5);
console.log(result); // 4