Skip to content

Commit 7ed06b7

Browse files
Merge branch 'master' into feature/2018-day-14
2 parents 59f02c9 + 1c46a1f commit 7ed06b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2018/day-12/solution.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const init = (data) => {
5858
}
5959
console.log(`At generation ${stableGeneration} the Δ is ${stableDeltas[0]} and the checksum is ${stableCheckSum}.`)
6060
// Calculate the checksum for 50B generations (minus the generation we're already at)
61-
const answer2 = (stableDeltas[0] * (50000000000 - stableGeneration - 1)) + stableCheckSum
61+
const answer2 = (stableDeltas[0] * (50000000000 - stableGeneration)) + stableCheckSum
6262

6363
console.log(`-- Part 1 --`)
6464
console.log(`Answer: ${answer}`)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy