Using recursion to sum two numbers (python)
Posted
by James
on Stack Overflow
See other posts from Stack Overflow
or by James
Published on 2010-05-02T23:17:24Z
Indexed on
2010/05/02
23:27 UTC
Read the original article
Hit count: 134
I need to write a recursive function that can add two numbers (x, y), assuming y is not negative. I need to do it using two functions which return x-1 and x+1, and I can't use + or - anywhere in the code. I have no idea how to start, any hints?
© Stack Overflow or respective owner