Just contrast this for a brief moment to something like Selection Sort which from the get go had a ridiculous amount of redundancy comparing the same damn numbers again and again, and again.
这就与其他的排序算法形成了鲜明的对比,比如选择排序,它会一次又一次地做,多余的比较。
Or maybe you could be wanting to try some extreme sports like skydiving, jumping out of an airplane.
又或者你想尝试一些极限运动,比如跳伞,直接从飞机上跳下来。
We can also follow stories which involve more profound transformations as when a man dies and is reborn into the body of a child.
我们也能理解很多包含更大转变的故事,比如某人死后又转世投胎到新生儿的身上
And you'll find in the end that recursion is a feature of a language, it allows you to map some very obvious concepts like the phonebook tearing in half and half and half and half to actual code without it using some arbitrary human contrived framework like a for loop or a while loop which are much more stilted mechanisms.
最后你会发现递归是某种语言的一种特征,你可以用它将一些非常明显的思想,比如将电话簿划分为一半又一半,映射为实际代码,而不必使用那些人为框架,像for循环,while循环之类的,那是很呆板的机制。
The patient--Freud says, "You hate your mother," and the patient says, "No, I don't.
又比如,弗洛伊德说,“你憎恨你的妈妈“,然后病人答道,“我才没有。
应用推荐