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 2017/day10.py

Ensure dense hash values are zero-padded.

+1 -1
+1 -1
2017/day10.py
··· 46 46 47 47 dense.append(res) 48 48 49 - print "Knot Hash of puzzle input:", ''.join(hex(x)[2:] for x in dense) 49 + print "Knot Hash of puzzle input:", ''.join('%02x' % x for x in dense)