Reply to Message

Recursive solution - fail
Never use that when there's another option.

It looks good on paper, try to debug it and you disappear up your own arse in three calls.

If want to test for recursion, problem should include a tree or some such.
Posted by Tony Hopkinson
18th Feb 2010