- Please solve the problem described in the index.ts file.
- Note that there is an incomplete set of tests in the spec folder.
- Please add additional tests and restructure anything as you see fit.
To edit, use your favorite local IDE/editor, or go to: https://vscode.dev/ and click "Open folder" to open the folder of this project.
Please submit a zip file containing the entire project, except for the node_modules folder.
If your code meets the following criteria then you will be invited to the next stage of the interview process.
- The code works according to the specs.
- All corner cases are handled correctly.
- Variable names are thoughtfully chosen.
- The code is maintainable.
- The code is readable.
- The code is fully tested.
- All requirements are tested.
npm ci
npm run test
- node v18.19.0