mebeim / aoc

🎄 My solutions and walkthroughs for Advent of Code and more related stuff.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

day3, answer 2 - missing sum

dsmdavid opened this issue · comments

answer2, day 3 - Is the condensed version missing a sum?

answer2 = map(prod, filter(lambda x: len(x) == 2, gears.values())))
print('Part 2:', answer2)
- answer2 = map(prod, filter(lambda x: len(x) == 2, gears.values())))
+ answer2 = sum(map(prod, filter(lambda x: len(x) == 2, gears.values()))))
print('Part 2:', answer2)

Love going through your solutions after I attempt mine!

Nice catch, thank you! Fixed in cbffd90 👍

Love going through your solutions after I attempt mine!

Glad you are enjoying them 😄