Remove live code & console.log, leave examples as comments (ProjectEuler, Recursive).

This commit is contained in:
Eric Lavault
2021-10-10 18:18:25 +02:00
parent 9212e6d684
commit 5f45b540b9
17 changed files with 48 additions and 98 deletions

View File

@ -12,7 +12,7 @@ Find the product abc.
const isPythagoreanTriplet = (a, b, c) => Math.pow(a, 2) + Math.pow(b, 2) === Math.pow(c, 2)
const findSpecialPythagoreanTriplet = () => {
export const findSpecialPythagoreanTriplet = () => {
for (let a = 0; a < 1000; a++) {
for (let b = a + 1; b < 1000; b++) {
for (let c = b + 1; c < 1000; c++) {
@ -23,5 +23,3 @@ const findSpecialPythagoreanTriplet = () => {
}
}
}
console.log(findSpecialPythagoreanTriplet())