Towers of Hanoi: Difference between revisions

Content added Content deleted
m (→‎Python Graphic: (Updated a type comment))
Line 3,490: Line 3,490:




# hanoi :: Int -> [(String, String)]
# hanoi :: Int -> [(Int, Int)]
def hanoi(n):
def hanoi(n):
'''A list of index pairs, representing disk moves
'''A list of index pairs, representing disk moves