Answers to LeetCode challenges in typescript with tests
- To run the code on your local environment
- Node
- Typescript
- Mocha
- Chai
clone, install, and test
$ git clone https://github.com/mattspaulding/leetcode-ts
$ cd leetcode-ts
$ npm install
$ npm test
-
In Visual Studio Code, set a breakpoint on the line to debug.
-
Go to the debugger section and press play.
- 0001. Two Sum
- 0002. Add Two Numbers
- 0008. String To Integer
- 0015. 3Sum
- 0021. Merge Two Sorted Lists
- 0023. Merge k Sorted Lists
- 0167. Two Sum II
- 0227. Basic Calculator II
- 0270. Closest Binary Search Tree Value
- 0387. First Unique Character in a String
- 1560. Most Visited Sector in a Circular Track
- 1561. Maximum Number of Coins You Can Get
- 1562. Find Latest Group of Size M
Matt Spaulding
Reach out to me!
- Website at
mattspaulding.org