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

    Very disappointed to find the top answer to a question titled "What is recursion and when should I use it?" not actually answer either of those, never mind the extremely bias warning against …

  2. Determining complexity for recursive functions (Big O notation)

    Nov 20, 2012 · This function is log (n) base 5, for every time we divide by 5 before calling the function so its O(log(n)) (base 5), often called logarithmic and most often Big O notation and …

  3. recursion - Java recursive Fibonacci sequence - Stack Overflow

    By using an internal ConcurrentHashMap which theoretically might allow this recursive implementation to properly operate in a multithreaded environment, I have implemented a fib …

  4. 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 …

  5. How do I reverse a list using recursion in Python?

    Oct 19, 2008 · I want to have a function that will return the reverse of a list that it is given -- using recursion. How can I do that?

  6. What is the difference between iteration and recursion?

    Feb 19, 2016 · The main difference between recursion and iteration is memory usage. For every recursive call needs space on the stack frame resulting in memory overhead. Let me give you …

  7. Can a lambda function call itself recursively in Python?

    A regular function can contain a call to itself in its definition, no problem. I can't figure out how to do it with a lambda function though for the simple reason that the lambda function has no n...

  8. Recursive function using MIPS assembly - Stack Overflow

    Oct 28, 2015 · You have to write a recursive function, but you are not writing a function at all. To write this function in MIPS assembler I suggest you first write it in a higher level language (C).

  9. c++ - Can a recursive function be inline? - Stack Overflow

    Oct 17, 2008 · With that said, a compiler can inline a recursive function, much as it can unroll an infinite loop. It simply has to place a limit on the level to which it will "unroll" the function.

  10. postgresql - Recursive function in postgres - Stack Overflow

    A classic approach, known from other programming languages, in which a function calls itself: create or replace function recursive_function (ct int, pr int)