My solutions to ProjectEuler problems in different programming languages (in continuation to project-euler-solutions-legacy)
In order to run a solution to a particular problem in a particular language, use the run
command as:
./run <language> <problem-number>
where language
should be one of the names mentioned above, in small-case and problem-number
should be a number.
For example, in order to run the solution to problem number 1 in Rust, you can run:
./run rust 1
To measure the time taken for running a solution, run it with perf
. For example, to measure the time for problem number 1 in Rust, you can use:
./perf ./run rust 1
The number of milliseconds spent will be displayed.
Note: The number of milliseconds also include the time spent for other tasks like validating the environment, checking if the solution exists, and even the compilation time for the languages that need compilation, etc. and may not represent the exact time taken for the solution.
- My first project on GitHub: project-euler-solutions-legacy