Ad
  • Custom User Avatar

    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 :)

  • Custom User Avatar

    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.

  • Custom User Avatar

    Working with a fixed array? What is more important: that the tests pass, or good solutions?

  • Custom User Avatar

    Amazing, this is wrong and gets three upvotes for best practices??? Can we downvote solutions?