递归方法也需要显式的返回类型。
例如,考虑在一个递归方法中会发生的事情。
Consider what would happen with a recursive method, for instance.
如果找到一个子元素,那么这个方法就使用这个子元素,递归地调用它本身。
If an element child is found, the method recursively calls itself with the child element.
b当一个方法是递归的时候。
这时你会问哪种方法更好一些呢——是递归法还是非递归法?
Now, you might ask which method is better - recursion or non-recursion?
过多的方法调用通常意味着存在非常深的递归或无限递归。
Too many method calls is often indicative of a very deep or unbounded recursion.
此方法不区分递归顺序。
这时你会问哪种方法更好一些呢——是递归法还是非递归法?
Now, you might ask which method is better—recursion or non-recursion?
该方法不以递归方式搜索当前组。
该方法不以递归方式搜索当前组。
应用推荐