CSES is one of the best sources of programming tasks. In this repository you can find my solutions that I solve in my free time using TypeScript programming language. I hope that I can create a complete collection of solved problems.
To run my code on your computer, just clone this repository:
git clone https://github.com/cheatsnake/CSES-problem-set-typescript.git
Then run the command to install the necessary packages:
npm install
Make sure you have already installed Node.js before running this command
Now just use the ts-node
command to run any code by specifying the path to it:
ts-node .\src\IntroductoryProblems\WeirdAlgorithm.ts
Thanks to Node.js readline module all my solutions support data entry from the console.
Run all tests using script:
npm test