Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Rotate Hole by fed.kz
def rotate(state, pipes):
result = []
for i in range(len(state)):
if all(state[i] for i in pipes):
result.append(i)
state = [state[-1]] + state[:-1]
return result
Sept. 18, 2018