https://github.com/mnikander/leetcode_typescript
Learning TypeScript via leetcode exercises
https://github.com/mnikander/leetcode_typescript
Last synced: 10 months ago
JSON representation
Learning TypeScript via leetcode exercises
- Host: GitHub
- URL: https://github.com/mnikander/leetcode_typescript
- Owner: mnikander
- License: mit
- Created: 2025-01-09T14:59:46.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-02-03T12:12:39.000Z (11 months ago)
- Last Synced: 2025-02-03T13:24:36.056Z (11 months ago)
- Language: TypeScript
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```bash
sudo apt install nodejs npm
```
Clone, build, and run:
```bash
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
- [W3 schools TypeScript tutorial](https://www.w3schools.com/typescript/index.php)