In this repository you can find some coding practices from different sources like CodeWars, LeetCode, HackerRank, etc.
To run and test the TypeScript
code, I'm using Deno
instead of Node
as the runtime environment, so that I can run the .ts
files directly without the need of transpiling them to .js
files:
deno run <file_name>.ts
Similarly, to run the tests, you can use the following command:
deno test <file_name>.ts
To run and test the C++
code, I'm using g++
compiler:
g++ <file_name>.cpp -o <file_name>.bin
After compiling the code, you can run the binary file:
./<file_name>.bin
You can compile and run the code using the following one-liner:
g++ <file_name>.cpp -o <file_name>.bin && ./<file_name>.bin