mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-20 10:37:07 +08:00
Remove live code & console.log, leave examples as comments (ProjectEuler, Recursive).
This commit is contained in:
@ -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())
|
||||
|
Reference in New Issue
Block a user