Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First impression solution in Clear category for Rotate Hole by nakanohito_piyo
def rotate(state, pipe_numbers):
ret = []
for i in range(len(state)):
state_rot=[state[x-i] for x in range(len(state))] #rotation
if all([state_rot[n]==1 for n in pipe_numbers]): #check
ret.append(i)
return ret
Sept. 29, 2015