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.
Closed.
See https://en.wikipedia.org/wiki/Fibonacci_number#Negafibonacci for an explanation of Fibonacci numbers for negative numbers.
And make sure that you compute the power correctly: put parenthesis around the
-1
, like in(-1) ** ((n.abs)+1) * fib(n.abs) if n < 0
This comment is hidden because it contains spoiler information about the solution
This is expected.
same here, as ex:
fib -38
Test Passed: Value == -39088169
fib -25
Expected: 75025, instead got: -75025
fib -88
Test Passed: Value == -1100087778366101931
I just solved the C# version. Issue seems solved.
There was an unused var on the backend test. I removed it, could you see if it solved the issue?