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.
Maybe it is because of this kata supports only PostgreSQL?
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?
Thank you for saying it, I’m already hysterical
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
with1 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?
CW supports PostgreSQL and SQLite only.
there are 536 users that have solved it in PHP.
This comment is hidden because it contains spoiler information about the solution
Many thanks for your notification; the link has been removed altogether and replaced by another one linking to an entirely different Kata/Series.
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?
Initially, but I managed to find a fast enough way (in PHP).
I am having problems with the rounding off too. Seems its an issue that needs to be solved before all the tests pass
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.