栈实现递归实现汉诺塔问题
摘要:
1 public class JavaDemo { 2 private int c = 0; 3 4 public static void main(String[] args) { 5 JavaDemo demo = new JavaDemo(); 6 demo.hanoi(3, 'x', 'y', 'z'); 7 } ... 阅读全文
posted @ 2017-06-04 22:50 baorant 阅读(597) 评论(0) 推荐(0) 编辑