Skip to content

Commit

Permalink
Merge branch 'master' into feature/2018-day-14
Browse files Browse the repository at this point in the history
  • Loading branch information
amclin authored Dec 23, 2018
2 parents ca41445 + c6dd678 commit d70721a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 2018/day-12/solution.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
Expand Down

0 comments on commit d70721a

Please sign in to comment.