Skip to content

Tackling Project Euler problems in Javascript/NodeJS

License

Notifications You must be signed in to change notification settings

lvlte/project-euler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProjectEuler

Solutions to Project Euler problems in Javascript / NodeJS.


Having spent some time solving these problems, I thought it could be useful for anyone interested in math/programming challenges to share my solutions along with (as much as possible) detailed approaches and explanations, and also a good way to showcase my skills in these fields.

I put a lot of effort into providing elegant and efficient solutions while explaining in the best possible way how I went about it (except maybe for the most obvious or well-known algorithms). Though you may find some brute force approaches I'm not that proud of (ಠ_ಠ).

100% of the code here including utils and math libraries are home made.

What is it already ?

Project Euler is a website dedicated to a series of computational problems intended to be solved with computer programs. The project attracts adults and students interested in mathematics and computer programming. Since its creation in 2001 by Colin Hughes, Project Euler has gained notability and popularity worldwide.

Installation

All you need is Node.js >= 18.0.0 (no module dependency / no external libraries required).

Usage

$ node solve.js <pid>

where <pid> is the problem id.

eg.

$ node solve.js 65

Problem 065 - Convergents of e
-> solution:  272
-> run time : 1.195ms

License

License: MIT

Basically, you can do whatever you want as long as you include the original copyright and license notice in any copy of the code.

About

Tackling Project Euler problems in Javascript/NodeJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published