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.
Yep. https://www.bell-labs.com/usr/dmr/www/cman.pdf
If p is NULL then it is falsy; and the && operator uses lazy evaluation, if its left operand is false, the expression evaluates to false without actually running the evaluation of the right operand. The same thing is true for the || operator as well, if the left operand is true, it returns true without trying to evaluate the right operand.
there needs to be
3
live cells for a dead cell to become alive.2
is not enoughThe expected output you've listed is wrong as well. The actual expected output for that test is:
I could be wrong, but it looks like you are progressively changing the input, and that is causing errors as your process each cell. Everything in the universe happens all at once for each generation, what happens in one cell for the next generation shouldn't effect what happens in the next cell for that current generation.
the Queue elements are pointers (
void*
) but you are storingint
egers instead. You need to take the address with&
when you enqueue, and dereference with*
when you dequeue. see my fork of your solution