Ad
  • Default User Avatar

    Maybe it is because of this kata supports only PostgreSQL?

  • Custom User Avatar

    Insomniah, this post is from 3 years ago, when some languages didn't have sample tests. AFAIK, all languages have sample tests now, so, what are you talking about?

  • Custom User Avatar

    Thank you for saying it, I’m already hysterical

  • Custom User Avatar

    Large, but small enough that it won't overflow your ( CodeWars' ) computer.

    There are many ways to solve this kata. You actually can encode the infinite sequence as a finite object, return that, and let testing figure out how to deal with the infinity ( it will ). Or you can approximate Infinity with 1 000 000, and return a solution based on that. You also actually can figure this out one number at a time; there are at least two ways to generate values for which it would be impossible to hold the entire sequence up to there in memory.

    Does this answer your question?

  • Custom User Avatar

    CW supports PostgreSQL and SQLite only.

  • Custom User Avatar

    there are 536 users that have solved it in PHP.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Many thanks for your notification; the link has been removed altogether and replaced by another one linking to an entirely different Kata/Series.

  • Custom User Avatar

    Thanks for trying the kata. Unfortunately there is nothing to see under "View Solution" of your comment probably because it shows only a working solution.

    Now this kata is designed for PostgreSQL therefore a MySQL solution most likely not going to fly.

    BTW what kind of error are you getting?

  • Custom User Avatar

    Initially, but I managed to find a fast enough way (in PHP).

  • Custom User Avatar

    I am having problems with the rounding off too. Seems its an issue that needs to be solved before all the tests pass

  • Custom User Avatar

    There is absolutely no requirement to write your own tests. Its just there all the time, in case you want to use them. Just click "Run Suite" instead.