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.
Weird: is this is a willfull simplification of the Binet formula, which because of the
round
happens to give the correct result?It looks like an incorrect implimentation of the Binet formula :)
Looking at the formula in detail the 'phi' part is an extremely small factor to make it into an integer, so rounding should indeed just do the trick.
Clever :)
Not sure if I would call it a best practice at all though :)
This is not correct, as I had the exact same solution to start with. When given 100, this will return ",100".
Can we help to improve katas with better tests so errors like this (and I noticed a few) will not pass? And ... make sure that better test-suites are re-run against entered solutions?
This gets an upvote for best practice, but the solution is just plain wrong.
Working with a fixed array? What is more important: that the tests pass, or good solutions?
Amazing, this is wrong and gets three upvotes for best practices??? Can we downvote solutions?