Comments on: Understanding Recursion https://demo.ritambhara.in/understanding-recursion/ Coding / System Design Interviews Mon, 25 Feb 2013 05:34:46 +0000 hourly 1 https://wordpress.org/?v=6.8.1 By: Kamal Rawat https://demo.ritambhara.in/understanding-recursion/#comment-1702 Mon, 25 Feb 2013 05:34:46 +0000 http://www.ritambhara.in/?p=187#comment-1702 In reply to anonymous.

thanks..

]]>
By: anonymous https://demo.ritambhara.in/understanding-recursion/#comment-1701 Sat, 23 Feb 2013 07:39:49 +0000 http://www.ritambhara.in/?p=187#comment-1701 Best explanation so far found on internet

]]>
By: Recursive function to traverse linked list in reverse order | ritambhara https://demo.ritambhara.in/understanding-recursion/#comment-1700 Wed, 13 Jun 2012 11:43:40 +0000 http://www.ritambhara.in/?p=187#comment-1700 […] is an example of Head Recursion. In Head recursion the recursive function is called first and then perform the […]

]]>
By: Output of a recursive function | ritambhara https://demo.ritambhara.in/understanding-recursion/#comment-1699 Wed, 13 Jun 2012 11:29:12 +0000 http://www.ritambhara.in/?p=187#comment-1699 […] printing the remainders in reverse order (Tail Recursion). 00    Read more from C, C++ Recursion Click here to cancel […]

]]>
By: Output of a C function | Ritambhara https://demo.ritambhara.in/understanding-recursion/#comment-1698 Tue, 12 Jun 2012 11:32:44 +0000 http://www.ritambhara.in/?p=187#comment-1698 […] is a classical example of both head recursion and tail recursion happening in the same function. You may also want to see my previous post on ‘Recursive […]

]]>
By: Recursive function to reverse a linked list | Ritambhara https://demo.ritambhara.in/understanding-recursion/#comment-1697 Tue, 12 Jun 2012 09:09:52 +0000 http://www.ritambhara.in/?p=187#comment-1697 […] Note, that Recursion comes with its own cost. to learn more, see this post… […]

]]>
By: Reversing a Singly Linked list | Ritambhara https://demo.ritambhara.in/understanding-recursion/#comment-1696 Tue, 12 Jun 2012 08:59:59 +0000 http://www.ritambhara.in/?p=187#comment-1696 […] function to reverse the linked list is recursive, but as I said earlier that recursion comes with its costs. so its always better to recursive functions because of time and space […]

]]>
By: Mirror of a Binary Tree | Ritambhara https://demo.ritambhara.in/understanding-recursion/#comment-1695 Tue, 12 Jun 2012 06:18:51 +0000 http://www.ritambhara.in/?p=187#comment-1695 […] I have written in my earlier posts also, Tree problems are better solved using recursion (But recursion comes with its side effect). Finding the Mirror can also be visualized […]

]]>