100 array algorithm exercises implemented in TypeScript, progressing from simple to advanced. Each solution is tested, linted, and enforced with pre-commit hooks.
This project includes:
- 100 fully implemented array algorithms in TypeScript
- Unit tests for every exercise
- ESLint + Prettier for code quality
- Pre-commit hooks via Husky
- TypeScript
- Jest
- ESLint + Prettier
- Husky
git clone https://github.com/Adam-hash-a11y/ts-array-algorithms.git
cd ts-array-algorithms
npm installnpm run test| Range | Level |
|---|---|
| 1 - 30 | Simple |
| 31 - 70 | Medium |
| 71 - 100 | Hard |
- Array filtering, mapping, reducing
- Sorting and searching
- Grouping and frequency maps
- Nested and deep arrays
- String manipulation
- Object arrays
- Matrix operations
- Real world data patterns
- runs all tests on every push
- runs ESLint checks
- ensures quality before merge
Pre-commit hooks via Husky ensure:
- lint rules respected
- tests pass before every commit