And if I want to move towers, let's say, size 5, from, to, and spare, there are the instructions for how to move it.
比如说五个吧,从这儿到那儿,中间再经过这个多余的柱子周转,关于怎么移动已经有说明了。
Well if I didn't want that, 8 again and so forth.
如果不想那样,再移动8,等等。
I've got to test to see if I'm in the base case, and if I'm not, then I need to move a tower of size n minus 1, I need to move a tower of size 1, and I need to move a second-sorry about that a second tower of size n minus 1.
首先我看看我是不是在最基本的情况,如果不是的话,我得先做一个N-1个,圆盘的移动,移动一个圆盘,然后再做一次N-1个圆盘的移动。
应用推荐