About 30,500,000 results
Open links in new tab
  1. What is recursion and when should I use it? - Stack Overflow

    There are a number of good explanations of recursion in this thread, this answer is about why you shouldn't use it in most languages.* In the majority of major imperative language …

  2. recursion - Determining complexity for recursive functions (Big O ...

    Nov 20, 2012 · I have a Computer Science Midterm tomorrow and I need help determining the complexity of these recursive functions. I know how to solve simple cases, but I am still trying …

  3. list - Basics of recursion in Python - Stack Overflow

    May 13, 2015 · Tail Call Recursion Once you understand how the above recursion works, you can try to make it a little bit better. Now, to find the actual result, we are depending on the value of …

  4. What is the maximum recursion depth, and how to increase it?

    From the Python documentation: sys.getrecursionlimit() Return the current value of the recursion limit, the maximum depth of the Python interpreter stack. This limit prevents infinite recursion …

  5. Recursion vs loops - Stack Overflow

    Mar 19, 2009 · Recursion is good for proto-typing a function and/or writing a base, but after you know the code works and you go back to it during the optimization phase, try to replace it with …

  6. java - What is recursion - Stack Overflow

    Nov 30, 2012 · Recursion is a programming technique where a method can call itself as part of its calculation (sometimes you can have more than one method - the methods would then …

  7. algorithm - recursion versus iteration - Stack Overflow

    Feb 23, 2020 · Recursion is usually much slower because all function calls must be stored in a stack to allow the return back to the caller functions. In many cases, memory has to be …

  8. What are the advantages and disadvantages of recursion?

    Mar 9, 2011 · With respect to using recursion over non-recursive methods in sorting algorithms or, for that matter, any algorithm what are its pros and cons?

  9. ruby - What is recursion and how does it work? - Stack Overflow

    Jun 20, 2011 · Could someone please explain what exactly recursion is (and how it works in Ruby, if that's not too much to ask for). I came across a lengthy code snippet relying on …

  10. recursion - Examples of Recursive functions - Stack Overflow

    Nov 27, 2013 · Can anybody suggest programming examples that illustrate recursive functions? There are the usual old horses such as Fibonacci series and Towers of Hanoi, but anything …