注意,此版本甚至可以在循环自身中使用递归,两次调用循环本身,一次用于对列表左手边的内容进行排序,另一次对列表右手边的内容进行排序。
Notice that this version even makes use of recursiveness in itself, calling itself twice, once to sort the left-hand side of the list, and once again to sort the right-hand side of the list.
无论是太多的循环、递归还是其他的什么,你现在应该知道如果处理类似的情况。
Whether there be too many loops, too much recursion, or just plain too much going on, you now know how to deal with each.
因此,只有在非常复杂的大量使用循环和递归调用的应用程序中,才需要考虑这种潜在的影响。
Therefore, the potential impact is a factor only in complex applications where iterations and recursive invocations are heavily used.
应用推荐