But I want to stress again, as long as I do the base case right and my inductive or recursive step reduces it to a smaller version of the same problem, the code will in fact converge and give me out an answer.
就开心的去做吧,但是我想再次强调,只要基础事件处理正确而我的递归,或递推步骤能把它简化为更简单的同类问题,那么这段代码就可以收敛。
In daily life, everything seems to come to rest unless you push it or you pull it or you exert some kind of force.
在日常生活中,一切物体都会停下来,除非你去推它,或者拉它,或者施加某种外力
He pushes and pushes and-- I'm on my way.
它推着推着我,我就能继续前行了。
One way is to just use your common sense and realize that if you push it this way, these two guys are going to move together.
第一种方法就是你可以通过常识感觉到,如果你这样推它,这两个物体会一起运动
Somehow, if you could manufacture a really smooth frictionless surface, that if you took a hockey puck or something and an air cushion and you give it a push, in some idealized world, it'll travel forever.
如果你制造一个绝对光滑无摩擦的表面,然后在上面放个冰球或者别的什么,或者气垫,然后推它一下,在理想条件下,它会永远运动下去
应用推荐