Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f45b54 commit 8a7be96Copy full SHA for 8a7be96
1 file changed
Project-Euler/Problem014.js
@@ -31,7 +31,7 @@ const getCollatzSequenceLength = (num, seqLength) => {
31
}
32
33
34
-export const findLongestCollatzSequence = (limit = 1_000_000) => {
+export const findLongestCollatzSequence = (limit = 1000000) => {
35
let startingPointForLargestSequence = 1
36
let largestSequenceLength = 1
37
for (let i = 2; i < limit; i++) {
0 commit comments