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.

Support negative numbers in parse_nums

+1 -1
+1 -1
2018/utils.py
··· 22 22 23 23 24 24 def parse_nums(line): 25 - return [int(n) for n in re.findall(r'\d+', line)] 25 + return [int(n) for n in re.findall(r'-?\d+', line)] 26 26 27 27 28 28 def new_table(val, width, height):