Using functools.lru_cache almost feels like cheating (both parts finish in 300 ms). Part 2 ratings = set([int(r) for r in data.split('\n')]) max_rating = max(ratings) builtin_rating = max_rating +...
Using functools.lru_cache almost feels like cheating (both parts finish in 300 ms).
Using functools.lru_cache almost feels like cheating (both parts finish in 300 ms).
Part 2