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 a3bda60 commit 1c46a1fCopy full SHA for 1c46a1f
2018/day-12/solution.js
@@ -58,7 +58,7 @@ const init = (data) => {
58
}
59
console.log(`At generation ${stableGeneration} the Δ is ${stableDeltas[0]} and the checksum is ${stableCheckSum}.`)
60
// Calculate the checksum for 50B generations (minus the generation we're already at)
61
- const answer2 = (stableDeltas[0] * (50000000000 - stableGeneration - 1)) + stableCheckSum
+ const answer2 = (stableDeltas[0] * (50000000000 - stableGeneration)) + stableCheckSum
62
63
console.log(`-- Part 1 --`)
64
console.log(`Answer: ${answer}`)
0 commit comments