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.
Two-pass solution
Constant time for accessing key.
Requires some logic to add new keys.
Not a mistake and there is still room for improvement
Yep, I noticed this mistake after submitting :(
haha nice
Yes. And yes, but no, we're not going to do that now.
Results can't be tested infinitely anyway, people will always ask ( or find out ) what size is being tested, so asking for an infinite sequence does not add anything. I think this has been asked, and answered, earlier.
This comment is hidden because it contains spoiler information about the solution
Is this kata asking for infinite sequence in Haskell or Lambda?
The same can be done in JS and Python
Could someone explain to me how the line below works for the description?
if 2 < len(cells & get_neighbours(x, y)) < 4 + ((x, y) in cells)
from my understanding the above would match on 3 for a dead cell and 3 or 4 for a living cell but the description for the challenge dictates 3 for a dead cell and 2 or 3 for a living cell (not 3 or 4), would really appreciate if someone could help me figure out what I'm missing?
so that's just weird haha
Input
n
( in JS, Python ) was completely unspecified even. Apologies for the oversight; the description has been made more explicit.It is not clear what input
n
means:Description might be more explicit
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
It is now :]
Loading more items...