3 ms·
You have a bug for the case of fib(0).
by dotancohen 6y ago
You have a bug for the case of fib(0).
- throwawayiionqz 6y agoIndeed, if you wish the sequence to be defined at 0, eru's solution is better (and appeared earlier while I was typing)
3 ms·