Create a template for solving algorithm problems
Project Generator TLDR: Automatically re-execute algorithm problem source code / Automatically grade example input and output
npm create algorithm@latest
algorithm
with your preferred IDE.These commands automatically execute the code and test cases upon modification. From the algorithm project folder, select and enter the command for your language:
npm run cpp
npm run cs
npm run c
npm run py
npm run java
npm run kotlin
npm run js
npm run ts
If you are a C++ user and do not have the GCC compiler installed, please install it from MSYS2.
Enter your code in the source code file for your preferred language at the following paths. Ensure to enter the appropriate command for the language you are using to enable automatic re-execution.
src/cpp/main.cpp
src/cs/Program.cs
src/c/main.c
src/py/main.py
src/java/Main.java
src/kt/Main.kt
src/js/main.js
src/ts/main.ts
To enable the automatic re-grading feature, you must enter
// baekjoon problem_number
at the very top of the source code. Please see the preview.
Currently, only boj is supported for this feature. Other platforms are not supported at this time. The following identifiers are treated the same:
You can also add custom test case for each run! Enter your input in src/input.txt
file. The process will automatically restart upon modification.
This project is licensed under the MIT License.