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.
~~: I learned something new today.
the while conditions, and the way u use res is very good but...
wew... took me a while to figure out what ur doing with c... true = 1, false = 0... useing that is brilliant.
Javascript: I have no idea where I need to start from. What does test cases gives in? what does my code need to give out... I am not that familiar with objects yet...
maybe it is intended but in R the function name that is writen in draft, is not what test calls.
hmmm so u can give true to 2 simply by changing when u increase i....
++i good one, didnt thought of that.
19.99999999999993 now.... thats a dilemma...
Tried to do this for hours didn't worked... Then I solved it with 35 line of for and if codes,
I should have ss what I wrote back then... know I dont even know what was wrong with it...
nwm I realized, answer to 1st question is there. and it can only be true if everything else in x,y is initially dead.
I didnt get 1 thing from this part;
"The universe is infinite in both the x and y dimensions and all cells are initially dead - except for those specified in the arguments."
so does it mean that 3x3 cells we are given repeats(some alive and some dead) in x and y direction, or outside of 3x3 there are only dead cells in x and y direction?
Question does not give u an array, but a string.
Maybe it will help you solve it.