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.
Thanks for working with me through this process. I updated the Solution Setup to remove incorrect prototypes and documentation, changed the test assertions to provide input,output, and expected output upon failure, and removed asprintf prototypes.
Thank you for your code review. I have corrected the referenced deficiencies. Would you mind reviewing again?
Added C Translation. Please Approve.
Added C Translatation, Please Approve.
where is the function
array2StringLongLong
defined?I think the test case for "should_work_for_a_single_glider_over_all_4_repeating_generations" is broken in C.
I can alter the test provided case changing
int **actual = get_generation(cells, 1, &rows, &columns);
toint **actual = get_generation(cells, 801, &rows, &columns);
or any multiple of 4 + 1, and pass the test. Valgrind says my code has no memory issues. Yet, the test case "should_work_for_a_single_glider_over_all_4_repeating_generations" segfaults. I see this exercise has a low number of completions in C. Perhaps this test case is new, and untested.`
This comment is hidden because it contains spoiler information about the solution
Thank You, I understood 'formed by deleting some characters' to be too broad, including reordering characters.
I am currently experiencing incorrect results on random tests
For instance with the provided word : "cvpdavvnhlwndlwrbucdkzacnnzhcouwliceshgdshujxujahowjxydrudfepfbkvcticpyyedkpj" , I received expected 'acoukv' but got 'dnrnjofcsbadforvab'. This isn't correct because the latter is obviously much longer than the former, and lexical order doesn't matter here.
This will cause Null Pointer Deference on malloc() failing.