Various programming puzzles and algorithms, e.g. LeetCode and similar. Because this coding is used nowhere in production my implementations are based mainly on valid and meaningful inputs (i.e. not every "NaN" or "undefined" malformed input combination or type mismatch is being handled). Therefore the unit tests do not guarantee complete functional correctness. They ensure basic correctness of the algorithm and serve as a reader's entry point. Development happens test-driven.
- Clone or download this repo
- Run
npm install
- Run
npm test
Algorithm | Implementation | Unit Tests |
---|---|---|
Sum Of Numbers | Implementation | Unit Tests |
Checksum | Implementation | Unit Tests |
Two Sum | Implementation | Unit Tests |
Longest Common Prefix | Implementation | Unit Tests |
Search 2D Matrix | Implementation | Unit Tests |
Longest Nonrepeating Substring | Implementation | Unit Tests |
Remove Covered Intervals | Implementation | Unit Tests |