So that's what we want to load up with electrons, and then see if we can remove some.
所以那个是我们,想加载电子的地方,然后看看我们是否可以移动一点。
Given the code up there, if I want to move a tower of size n, what do I have to do?
鉴于这里的代码,如果我想移动N个圆盘,我该怎么做?
Suppose you want a character to move around the screen and collect things.
假定想让一个东西在屏幕周围,移动并收集各种信息。
% Some people, the next most popular answer with 5%, which is a nice low number, wanted to put two in the 2 p x before they moved on.
下一个更多的选择占了,是一个比较低的数字,想要将两个电子在移动之前放入2px轨道,记住在我们双倍填充之前。
N And we can keep doing"T","A","N", ? and I think you see where it is going.
然后接着移动字母,T,A,和,我想大家应该知道后面是哪些字母了吧。
If I want to move this stack here, I'm going to take a stack of size n minus 1 move it to the spare spot, now I can move the base disk over, and then I'm going to move that stack of size n minus 1 to there. That's literally what I did, OK?
如果我想移动这些圆盘,我先把从n-1个圆盘1,移动到多余的柱子上去,这样我就能把最底下的圆盘放到这儿了,然后再把从n-1个圆盘放到这儿来,这就是确切的我怎么做的对不对?
应用推荐