https://github.com/vitkarpov/project-euler
Solutions of the problems from projecteuler.net
https://github.com/vitkarpov/project-euler
Last synced: about 2 months ago
JSON representation
Solutions of the problems from projecteuler.net
- Host: GitHub
- URL: https://github.com/vitkarpov/project-euler
- Owner: vitkarpov
- Created: 2013-08-05T10:48:59.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-05-03T07:18:55.000Z (almost 11 years ago)
- Last Synced: 2025-01-17T23:19:45.741Z (3 months ago)
- Language: JavaScript
- Homepage: http://projecteuler.net/
- Size: 273 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Project Euler
[Progress](http://projecteuler.net/profile/vitkarpov.png)
> Project Euler exists to encourage, challenge, and develop the skills and enjoyment of anyone with an interest in the fascinating world of mathematics.
If you haven't heard about it, be sure to check out [About Project Euler](http://projecteuler.net/about)
### Benchmarking
Benchmarking is a really interesting and important part of solving the problems.
There is a special script `benchmark.js` which should be run under node. It accepts a task's folder name (path indeed, but it's the same in this case) and outputs measurment's results for each js file inside, so assuming there're different solutions of the same problem.
For instance
```
node benchmark.js \#1-Multiples-of-3-and-5\Working. Please, wait...
arithmetic_progressions.js x 16,450,707 ops/sec ±0.46% (99 runs sampled)Working. Please, wait...
obvious_bruteforce.js x 94,609 ops/sec ±0.25% (102 runs sampled)
```Obviously bruteforce solution is absolutely slower then using arithmetic progression.