Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
take a hammer to crack a nut solution in 3rd party category for Follow Instructions by flpo
import numpy as np
step = {'f': [0, 1], 'l': [-1, 0], 'b': [0, -1], 'r': [1, 0]}
def follow(instructions):
return np.sum([step[i] for i in instructions], axis=0).tolist()
March 2, 2018