~~: 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...
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...
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?
only death cells. You also need to crop resulting array to the smallest possible array where any column or row contains at least one "1"
~~: 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...
This is actually an issue, I already rose is a long time ago.
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.
Too late to modify the description and all the 38 translations; furthermore finishing a cabbage doesn't need more than 24 hours :-)
JavaScript needs a test case where the total time is more than 24.0 hours. This might invalidate several solutions.
19.99999999999993 now.... thats a dilemma...
agreed
Yes, but the function's name at least in javascript is
array
. Maybe a better name should be used.The description clearly states:
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?
Loading more items...