My organization of project euler solutions - going to work through them in Javascript this time instead of C# and C++
- Copy an existing
problem-NNNN
folder adjusting the name to reflect the problem number cd
to your new problem folder:- Open
problem.js
- Edit the
Inputs
as appropriate
/* ========================================== */
/* Inputs */
const problemNumber = 1
const problemTitle = 'Placeholder for Problem Title'
const problemDefinition = `This is a placeholder
for any given problem's definition`
const expectedSolution = 42
/* ========================================== */
- Save
- Open the
solution.js
file - Immplement your solution
- Update
solveAsynce
's Promise resolve to return the result of your solution - Save
- Run the
problem.js
file
============================================================
Project Euler
Problem0001
Placeholder for Problem Title
Description
This is a placeholder
for any given problem's definition
------------------------------------------------------------
Solution: 42 solved in 0 ms
============================================================
Passed
[Done] exited with code=0 in 0.127 seconds