Ad
  • Custom User Avatar

    You are right, there is something wrong with htmlize. My code can pass all the random test. If I use htmlize, however, it will crashes.
    I stuck in the 11th should_work_for_a_single_glider_over_all_4_repeating_generations as well.

  • Default User Avatar

    the crash in your original message is normal, as per the comments in the initial code:

    NOTE: Please make a deep copy of the GoL universe and modify that instead
    of the original universe cells passed in because the test cases will
    free the memory allocated by your solution AND to the original grid

    so, returning cells triggered an error known as a double free() where the same pointer is freed twice

    On the other hand you are not the first one reporting issues in C for this kata; I will try to investigate a bit and add better error messages if I can

  • Custom User Avatar

    Use a spoiler flag please. I see no crash in this, just an answer not accepted.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution