All right. The rules, though, are, they can only move one disk at a time, and they can never cover up a smaller disk with a larger disk. OK. Otherwise you'd just move the whole darn stack, OK?
好,规则是,他们只能一次挪动一个盘子,并且不能把大盘子放在小盘子上,不这样的话你就直接,把这一堆盘子都挪过来了对不对?
The upside of it of course though is that's it's pretty darn easy to implement.
尽管实现起来,相当容易。
All right. I tried it on 2, I surely didn't expect a precise and exact answer to that but I got something, and if you square this, you'll find the answer kept pretty darn close to 2.
好,我试试求2的平方根,我当然不希望得到一个完全准确的答案了,但是我得到了一个近似值,试试将这个数平方一下,你会发现结果和2相当接近。
The truth of the matter is if you look at the technology industry, there's always a few big guys, some medium size guys, lots of small guys, and the names are always changing because the industry is so darn dynamic, and there's so much new stuff being invented.
真相是,如果你回首科技行业,人总会分为三六九等,耳熟能详的名字总在变化,因为这个行业发展实在太快了,有如此多的新事物被发明出来。
I stress it in particular because I know you're all going to get into this stage; you've got a problem set due in a couple of hours, you're still writing the code, you don't want to waste time, and I'm going to use quotes on "waste time", doing those extra things to do the defensive programming, you just want to get the darn thing done.
我特别强调了这一点,因为我知道你们都会慢慢成为程序员;,你在写代码过程中造成了一系列的错误,你还在写代码,你不想浪费时间,我想把“浪费时间“用引号圈起来,浪费时间来做因为防卫性程序设计,而带来的这些额外的事情,你只想赶紧把程序写完,这不是一个好习惯,因为当你做完回头。
That's a pretty darn big difference.
这是一个极其大的区别。
应用推荐