Draft

Even more efficient last 'Fibonacci' digit in base d

Description
Loading description...
Mathematics
Number Theory
  • Please sign in or sign up to leave a comment.
  • Yushi.py Avatar

    This is basically an easier version of this kata.

    It's also just one extra line than most Fibonacci katas.

    • donaldsebleung Avatar

      I respectfully disagree that this makes the Kata worthless and unsalvageable. What's wrong with authoring a Kata which strikes some "middle ground" between your typical beginner Fibonacci Kata and some ultimate generalized version of a Fibonacci Kata understood mostly by math majors and postgraduates?

      By this logic I can author a Kata on the "theory of theories" in mathematics and that would make pretty much every other existing mathematics Kata on this site a duplicate ;-)

    • Yushi.py Avatar

      I understand your point, my comments aren't personal, I just believe your logic does not apply in this case.

      First of all, I feel like middle ground katas aren't all that great. If the harder version already exists, the user might as well solve that one. However, even in this case, the solution is just way too similar to already existing katas (famous ones at that).

      Maybe if the kata was a subset of a less solved kata or harder one, but Million Fib is one of the most popular 3kyu on the site (4th most solve), so you have 12000 people that will solve this for free.

      Also, if you can author a kata such that I can copy and paste it's solution on any other kata and still pass, then yeah, I'll give that point to you, just waiting until that happens :)

  • Mednoob Avatar
    test.assert_equals(U_n(1232, 4535, 5345, 0), 0)
    

    This edge case goes against the constraint of k in the description