A collection of leetcode solutions in TypeScript. These are mostly ported from my corresponding JavaScript repository. The emphasis is NOT on efficient solutions, but on learning the basics of TypeScript.
Install system dependencies:
sudo apt install nodejs npmClone, build, and run:
git clone ... # this repo
cd leetcode_typescript
npx tsc hello_world.ts # compile the hello world example
node build/hello_world.js # run the hello world example
npm test # execute unit tests
npm test -- --coverage # check the test coverage