This repository contains implementations of some data structures and algorithms. It serves the purpose of reference. Not for production use.
- Knuth Shuffle - returns a shuffled copy of the array
- Shell Sort - returns a sorted copy of the array
- Quick Sort - returns a sorted copy of the array
- Insertion Sort - returns a sorted copy of the array
- MaxHeap - allows for
add
andremoveMax
operations (with heapify) - MinHeap - allows for
add
andremoveMin
operations (with heapify) - Heap - allows for
add
andremoveRoot
operations (with heapify) - BinarySearchTree - allows for
set
,get
,min
,max
, iteration (no deletion)
Testcases are created with jest
. Run testcases:
npm run test