diff --git a/2018/day-12/solution.js b/2018/day-12/solution.js index 2bcc025..67051df 100644 --- a/2018/day-12/solution.js +++ b/2018/day-12/solution.js @@ -58,7 +58,7 @@ const init = (data) => { } console.log(`At generation ${stableGeneration} the Δ is ${stableDeltas[0]} and the checksum is ${stableCheckSum}.`) // Calculate the checksum for 50B generations (minus the generation we're already at) - const answer2 = (stableDeltas[0] * (50000000000 - stableGeneration - 1)) + stableCheckSum + const answer2 = (stableDeltas[0] * (50000000000 - stableGeneration)) + stableCheckSum console.log(`-- Part 1 --`) console.log(`Answer: ${answer}`)