4 ms·
Python is really bad at recursion (part of why it's not appropriate for functional programming), so perhaps an unfair benchmark? A Pythonic implementation woul
by tinyspacewizard 2y ago
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.