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 revamped the tests suite.
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.
chmod_calculator
,cr_assert_eq
, etc.asprintf
are unnecessary now.Thank you for your code review. I have corrected the referenced deficiencies. Would you mind reviewing again?
chmod_inverse
defined in the solution? Does user have to write this function?The expression (strcmp(result,expected)) == (0) is false.
static
.perms[ ]
differ, some are declared with size of 9, and some of 10.cr_assert_eq
instead of string assertions?Added C Translation. Please Approve.
thank you for your help,
Added C Translatation, Please Approve.
where is the function
array2StringLongLong
defined?Up! The same
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.
being longest isn't the only requirement, it also needs to be in the dictionary and be a subsequence of the string. you're only considering two of those three requirements
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.
Loading more items...