2 ms·
You must mean "return n", but I don't have an opinion on "correct" behvior. All that's happening is the index is shifted by 1.
by tome 16y ago
You must mean "return n", but I don't have an opinion on "correct" behvior. All that's happening is the index is shifted by 1.
- amouat 16y agoTrue. I'll update above regarding n. However, it's certainly different to the other examples and I would expect fib(2) to be 1 + 0 not 1 + 1. It's a very minor point though - I think I'll stop now ;)