Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Rotate Hole by Oleg_Domokeev
def rotate(state, pipe_numbers):
L, state = len(state), state * 2
return [i for i in range(L) if all(state[(L - i):(2 * L -i)][canon] == 1 for canon in pipe_numbers)]
Jan. 10, 2019