My Advent of Code solutions in Python. kevinyap.ca/2019/12/going-fast-in-advent-of-code/
advent-of-code python
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update day03.py

+3 -2
+3 -2
2016/day03.py
··· 2 2 from utils import chunks 3 3 4 4 5 - def possible_tri(t): 6 - return (t[0] + t[1] > t[2]) and (t[0] + t[2] > t[1]) and (t[1] + t[2] > t[0]) 5 + def possible_tri(tri): 6 + t = sorted(tri) 7 + return t[0] + t[1] > t[2] 7 8 8 9 9 10 triangles = []