- The
blind75
folder contains all TypeScript files for you to complete. - The
solution
folder contains all completed TypeScript files for each problem. - The
js-files
folder contains all TypeScript files in the project converted to JavaScript.
git clone
this repository.cd Blind75
.- Open
blind75/01.two-sum.ts
in the text editor of your choice. - Run
npm test two-sum
ornpm test 01
to open a live testing environment in your terminal.
npm start
: Converts all TypeScript files to JavaScript and runs theleetcode.problem.js
file.npm run build
: Converts all TypeScript files to JavaScript files.npm run dev
: Runs theleetcode-problem.ts
without converting anything.
If you want to run a specific problem in the blind75
and add your own tests, you can either do this in the terminal:
Example:
node js-files/blind75/1.two-sum.js
Or you can install ts-node
and run:
Example:
ts-node blind75/1.two-sum.ts
This setup allows you to work on LeetCode Blind 75 Problems in TypeScript efficiently.
Fork the repo and open a pull request to the main branch.