An open API service indexing awesome lists of open source software.

https://github.com/greedchikara/dsajs

Data Structures and Algorithms written in Javascript
https://github.com/greedchikara/dsajs

algorithms data structures

Last synced: about 1 month ago
JSON representation

Data Structures and Algorithms written in Javascript

Awesome Lists containing this project

README

          

dsajs



dsajs logo



Credits: Illustration by unDraw


![GitHub](https://img.shields.io/github/license/greedchikara/dsajs) ![npm](https://img.shields.io/npm/v/@greedchikara/dsajs) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/@greedchikara/dsajs)

## Contents
### Data Structures

#### [Stack](lib/data-structures/Stack.js)
* Time Complexity
* Access: `O(n)`
* Search: `O(n)`
* Insert: `O(1)`
* Remove: `O(1)`

- Linked List (TODO)

### Algorithms

#### [Binary Search](lib/algorithms/binarySearch.js)
* Time Complexity: `O(logn)`