Technical interview solutions.
- Typescript used as a simple typed choice.
- Test + coverage using Jest
- Integration with Github CI for automated tests
This project assumes yarn
is installed. You can install yarn
with npm i -g yarn
command.
- Clone the repository, then install the packages in the folder with
yarn install
- To test, run:
yarn test
; this will run tests for both parts of the challenge.
Note: For the second part of the question, as per the requirement, the assertion logic has been left intact. Building the tree is simplified with a more declarative approach.