演算法. Procedure HANOI(n, A, B, C) IF(n == 1) PRINT("Move sheet " n " from " A " to " C) ELSE HANOI(n-1, A, C, B)
openhome.cc