6 ms·
A brilliant use of recursion
- mooism2 15y agoThis is pretty and hopelessly inefficient, in the same way that functions for calculating the fibonacci sequence can be pretty and hopelessly inefficient.
- ekn 15y agoTrue. But it looks beautiful.
- saiko-chriskun 15y agoI think you're mistaking beauty for common sense :P
- ekn 15y agoTrue. I got carried away with that one line magic :)