Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 725 Bytes

File metadata and controls

25 lines (20 loc) · 725 Bytes

Learning TypeScript

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.

Getting started

Install system dependencies:

sudo apt install nodejs npm

Clone, 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

Learning resources