mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 16:26:47 +08:00
Fix non-standard syntax
This commit is contained in:
@ -31,7 +31,7 @@ const getCollatzSequenceLength = (num, seqLength) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const findLongestCollatzSequence = (limit = 1_000_000) => {
|
export const findLongestCollatzSequence = (limit = 1000000) => {
|
||||||
let startingPointForLargestSequence = 1
|
let startingPointForLargestSequence = 1
|
||||||
let largestSequenceLength = 1
|
let largestSequenceLength = 1
|
||||||
for (let i = 2; i < limit; i++) {
|
for (let i = 2; i < limit; i++) {
|
||||||
|
Reference in New Issue
Block a user