星期一, 6月 11, 2007

Lab Hanoi Tower

The pseudocode for Hanoi Tower is as follows:

Solve(N, Src, Aux, Dst)
if N is 0 return
Solve(N-1, Src, Dst, Aux)
Move N from Src to Dst
Solve(N-1, Aux, Src, Dst)

Write the Java program based on the pseudocode in the above.

23 則留言:

  1. 9427217林明駿
    老師 我上次有跟您請過假(因為昨天資工系資工之夜) 所以我現在將昨天課堂作業po上來

    回覆刪除