Skip to content

ld-codes/leetcode-typescript-template

Repository files navigation

Leetcode Typescript Template

About ℹ️

A template to use for Leetcode Typescript grinding.

What's included 📦

For Typescript

For Leetcode

Official doc for JavaScript/Typescript runtime environment

  • @datastructures-js/priority-queue library installed with typings!
  • @datastructures-js/queue library installed
  • lodash.js installed
  • Script to generate a custom test case and copy it to clipboard

For Developer Experience

  • .editorconfig and prettier config setup
  • eslint auto fix and auto import organizing
  • Debugging in vscode

Usage 📝

Development

  1. Install dependencies
$ npm i
  1. Edit src/index.ts

  2. Run

$ npm run start

Test

$ npm run test

Test Generation

$ npm run testgen

Debug

  1. Click "Run and Debug" menu in vscode
  2. Select "Debug Jest" option, or "Debug Jest Win" if you're a windows user
  3. Click "Start Debugging" button or hit "F5" key

About

A template to use for Leetcode Typescript grinding

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published