摘要: hanoi(n,x,y,z){hanoi(n-1,x,z,y);//n-1 from x to ymove(x,z);//x->zhanoi(n-1,y,x,z);//n-1 from y to z}hanoi(n-1,x,z,y){hanoi(n-2,x,y,z);//n-2 from x to ... 阅读全文
posted @ 2013-11-03 20:59 voh99800 阅读(244) 评论(0) 推荐(0) 编辑