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.
This comment is hidden because it contains spoiler information about the solution
You cannot get that behaviour wihout using any classes or objects in python
wut did I just read
Using only correct NegaFibonacci numbers, there is no ambiguity.
1 and 2 are not consecutive NegaFibonacci numbers, they are separated by -1.
I don't get it. I thought comments are only visible once you've either solved the kata or given up so what are spoiler flags for?
I challenge you to create a function that is not a class.
This comment is hidden because it contains spoiler information about the solution
Smart, like it alot
The description doesn't explain the task in full. The issue above addresses this point more clearly - resolving this one.
.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Interesting idea. I wouldn't be surprised if an analytical result would involve irrational numbers, just as the analytical expression for the n'th Fibonacci number involves the golden section. From my own implementation of the solution, I'm able to extract an
m x m
matrixM
and intialize a vectorv
such that the last component ofM^n x v
yields the result. I'm just too lazy to compute the eigenvectors or the singular value decomposition ofM
.If you pursue your idea, I would be interested in the result. Please let me know by sending a reply to this thread. Don't forget to mark your reply as having spoiler content.
Loading more items...