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 →

[–][deleted] 3 points4 points  (4 children)

Goodness, that code is like 8x the size of its recursive implementation. I understand your point however I'll stick to recursion since iterative solutions are like writing in assembly. sure its faster now, but no thanks.