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.
導覽連結: 首頁 -> 標題: Lab Hanoi Tower
2008年1月11日 星期五
Lab Hanoi Tower
ARTICLE LABELS: Java
訂閱:
張貼留言 (Atom)
0 COMMENT:
張貼留言