Basic data structures & algorithms implemented in TypeScript. Unit tests written in Jest.
- Array
- Merge Sort (Recursive)
- Merge Sort (Iterative)
- Binary Search
- Binary Insert
- Binary Search Tree
- Insert
- Search
- Graph (Directed, Unweighted)
- Depth First Search (Iterative)
- Breadth First Search (Iterative)
- Heap
- Extract Top
- Extract Top N
- Heapify
- Linked List
- Remove First Occurrence
- Reverse
- Queue
- Enqueue
- Dequeue
- Trie
- Insert
- Search
- Starts With
Requirements:
Commands:
yarn
- Installs all necessary dependenciesyarn build
- Compiles the project to thedist
folder as vanilla JSyarn test
- Runs all Jest unit testsyarn coverage
- Generates a test coverage report