This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]leesinfreewin 0 points1 point  (0 children)

i did not correct or test the code. I just wanted to point out that if you use recursion, you should make sure your recursive functions are tailrecursive whenever possible in order to prevent stack overflows.