Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Easy to read code
you had to use ternary operator with a lot a parentheses
This one is good practice for OOP
what is the difference either using + and *. Please.
👀
Best solution...
Since
0
is not considered a fibonacci number (not according to this Kata description anyway) it seems weird to me to initialisea=0
just to make the getAsInt work out right for first call.