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.
Really good use of a dictionary
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?
Jesus christ
Wholy cow! My first attempt seems like the clumsiest one compared to this solution. Still a long way to go but loving the chance to understand better practices.
Yes.
Chapeau!
I feel so dumb rn because I used min(), max() and imported statistics to do statistics.median([]). I guess I still have much to learn. Only less than a week into all this.
Slick
Brilliant soulutin!
lol
ahahha I used the cosine rule but I could have done this. It always makes me chuckle when I overcomplicate a problem
Two important things I learned from this solution:
sorted
can take a set and make it a listany
function is a nice thing to have in mindGreat
Awesome!am learn alot.Thanks codewars.
gg
This comment is hidden because it contains spoiler information about the solution
Loading more items...