- The
blind75folder contains all TypeScript files for you to complete. - The
solutionfolder contains all completed TypeScript files for each problem. - The
js-filesfolder contains all TypeScript files in the project converted to JavaScript.
git clonethis repository.cd Blind75.- Open
blind75/01.two-sum.tsin the text editor of your choice. - Run
npm test two-sumornpm test 01to open a live testing environment in your terminal.
npm start: Converts all TypeScript files to JavaScript and runs theleetcode.problem.jsfile.npm run build: Converts all TypeScript files to JavaScript files.npm run dev: Runs theleetcode-problem.tswithout 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.