Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/outluch/leetcode-js-tdd
Simple boilerplate for LeetCode warriors
https://github.com/outluch/leetcode-js-tdd
javascript leetcode tdd
Last synced: about 8 hours ago
JSON representation
Simple boilerplate for LeetCode warriors
- Host: GitHub
- URL: https://github.com/outluch/leetcode-js-tdd
- Owner: outluch
- Created: 2020-01-12T14:22:57.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-10T22:22:09.000Z (over 3 years ago)
- Last Synced: 2023-07-31T12:34:48.338Z (over 1 year ago)
- Topics: javascript, leetcode, tdd
- Language: JavaScript
- Homepage:
- Size: 61.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# leetcode-js-tdd
Simple boilerplate for leetcode warriors
## How to use
1. Clone this repo
2. Install [LeetCode extension](https://marketplace.visualstudio.com/items?itemName=shengchen.vscode-leetcode) in your vscode
3. Configure extension to use `problems` folder in the repo
4. Export solution with cases as in `1.two-sum.js````js
module.exports = {
// ignore: true,
fn: twoSum,
cases: [
{ in: [[2, 7, 11, 15], 9], out: [0, 1] },
{ in: [[11, 2, 15, 7], 9], out: [1, 3] },
],
}
```5. `npm start`
## Features
### Ignoring problems
You can ignore problem if you export `ignore: true`
### Testing for unordered results
If you are asked to provide an array of solutions without particular order, you can use helper method to test your functions. See `49.group-anagrams.js`