Base Case in a recursive method

Posted by Shaza on Stack Overflow See other posts from Stack Overflow or by Shaza
Published on 2010-05-06T17:59:15Z Indexed on 2010/05/06 18:08 UTC
Read the original article Hit count: 209

Filed under:

Hey all, About my question, I'm asking a theoretical question here about Base case or the halting case in a recursive method, what's its standards? I mean, is it standard not to have body in it, just a return statement?

Is it always like the following:

If(input operation value)
return sth;

Do you have different thoughts about it??

© Stack Overflow or respective owner

Related posts about recursion