Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Rotate Hole by TovarischZhukov
def rotate(state, pipe_numbers):
retval=[]
count=0
while count!=len(state):
find=True
for number in pipe_numbers:
if not state[number]: find=False
if find: retval.append(count)
count+=1
state=[state[-1]]+state[:-1]
return retval
Feb. 3, 2016