Skip to content

Instantly share code, notes, and snippets.

View reikoNeko's full-sized avatar

Rachel Rawlings reikoNeko

View GitHub Profile
# In[17]:
keypad=[[1,2,3],[4,5,6],[7,8,9]]
def kp_move(position,ditherings):
r,c = position
#print(ditherings[:3],ditherings[-3:])
for char in ditherings:
if 'U' == char:
r = max(0, r-1)
elif 'D' == char:
@reikoNeko
reikoNeko / AoC4-1.ipynb
Last active December 8, 2016 19:04
Create default dict to find valid keys for Advent of Code 4-1, part 1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.