Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Rotate Hole by Moff
def rotate(initial, pipe):
return [r for r in range(len(initial)) if all((initial[-r:]+initial[:-r])[p] for p in pipe)]
July 27, 2015