/technology
+⧖>Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like. People use them as a speed contest, interview prep, company training, university coursework, practice problems, or to challenge each other. https://adventofcode.com/ /g/ leaderboard join code: 224303-2c132471 anonymous-only leaderboard: 383378-dd1e2041 22 hours and 37 minutes remain.
>Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like. People use them as a speed contest, interview prep, company training, university coursework, practice problems, or to challenge each other. https://adventofcode.com/⧉ /g/ leaderboard join code: 224303-2c132471 anonymous-only leaderboard: 383378-dd1e2041 22 hours and 37 minutes remain.>import solution from collections import Counter from functools import reduce from operator import mul with open('p01.txt') as fh: nums = Counter(int(l) for l in fh.readlines()) mc = [n for n, _ in nums.most_common()] print(reduce(mul, mc[:3])) print(reduce(mul, mc[-3:])) why does he bother with these day 1 shits. if there's only 12 days fuckin lets go
⧖expiring0/2 kept2d ago
⏱ 2d 👍 0
⬆ upvote 0
/technology
trying
closest
needs