Python is really bad at recursion (part of why it's not appropriate for functional programming), so perhaps an unfair benchmark?
A Pythonic implementation would use loops and mutation.
A Pythonic implementation would use loops and mutation.
No comments yet.