Skip to content

Instantly share code, notes, and snippets.

View attilahorvath's full-sized avatar

Attila Horváth attilahorvath

  • Dublin, Ireland
View GitHub Profile
@GlenboLake
GlenboLake / day20_math.py
Created December 20, 2017 20:11
Day 20 of Advent of Code 2017, solved without iteration
import re
from cmath import sqrt
from collections import defaultdict, namedtuple
from functools import reduce
from itertools import combinations
from time import time
Particle = namedtuple('Particle', ['pos', 'vel', 'acc'])
def parse_particle(line):