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.
Lol. I have no idea what that was about. It worked because that
if
statement always evaluates to true. I probably meantif(end >= start)
, but that isn't necessary either: the for loop should be good enough without the if statement. So that's a bit of a mystery to me. This code was from many years ago, and I no longer remember what I was thinking.This comment is hidden because it contains spoiler information about the solution
i'm getting rusty :(
The Fibonacci sequence should be explained better
This comment is hidden because it contains spoiler information about the solution
The instructions on how to calculate the fibonacci sequence are a little unclear. (n - 1) + (n - 2) appears to be some addition and subtraction. The calculation is really fib(n - 1) + fib(n - 2)