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>.tsSimilarly, to run the tests, you can use the following command:
deno test <file_name>.tsTo run and test the C++ code, I'm using g++ compiler:
g++ <file_name>.cpp -o <file_name>.binAfter compiling the code, you can run the binary file:
./<file_name>.binYou can compile and run the code using the following one-liner:
g++ <file_name>.cpp -o <file_name>.bin && ./<file_name>.bin