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.
Nice!
It's clever for sure. But usually clever != best practice.
wow!
pure gold as is
It is while loop with simple condition and 1 instruction that is assigning
a = b
andb = a + b
This comment is hidden because it contains spoiler information about the solution
The formula is not accurate for n > 71. Hence, this solution won't work for even trivial values.
Amazing
Not sure if this falls into Best Practices or Clever. I can understand what its doing but typing out a longer code that makes more sense to others might be better. Either way I'll remember it forever cause this is good.
It is definetely not a byproduct of the kata requiring the next highest pair. The reason people haven't been using this solution is because most don't know about it.
I know this is old, but thanks for sharing! Very interesting.
Thank you for your suggestion!
I saw your solution, but it was not actually working as I expected, so I decided to solve it like this:
https://www.codewars.com/kata/reviews/554398d646002df491000183/groups/5dc2fa1a83a99000015a24ba
Very clean & readable. I like this solution a lot.
Awesome
Am array containning 2 elemet is great. Awesome
It is unfortunate that none of the top solutions use algebra to solve this, but all choose a brute force algorithm...
It is definitely a byproduct of the kata requiring the next highest pair even for false results.
Loading more items...