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.
This comment is hidden because it contains spoiler information about the solution
if we are supposed to mutate board like so:
board[row][col] = count;
,board
should be declared aschar *const *board
Pressing "Test" passes the tests.
Pressing "Attempt" solves many tests, even many data-sets within the random_tests.
However, the random_tests fail after many sets.
STD Err:
main.cpp:63:34: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare]
for (size_t index = 0; index < lhsSize && areEqual; ++index) {
~~~~~ ^ ~~~~~~~
main.cpp:155:50: warning: 'sizeof (output)' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
assertArraysEquals(output, sizeof(output)/sizeof(int), output_gt, sizeof(output)/sizeof(int));
~~~~~~~~~~~~~~^
main.cpp:155:89: warning: 'sizeof (output)' will return the size of the pointer, not the array itself [-Wsizeof-pointer-div]
assertArraysEquals(output, sizeof(output)/sizeof(int), output_gt, sizeof(output)/sizeof(int));
~~~~~~~~~~~~~~^
3 warnings generated.
Max Buffer Size Reached (1.5 MiB)
-> now, did I screw up something, or are the random_tests crashing from time to time?
-> PLUS: The random test input arrays are NOT sorted as stated in the instructions.
https://www.codewars.com/kata/reviews/5a4b7c31b3f0a15f7200000c/groups/5ea10ceece3ee600010f4bb0
https://www.codewars.com/kata/reviews/5a4b7c31b3f0a15f7200000c/groups/5ea0929b02cf740001c01a50
https://www.codewars.com/kata/reviews/5a4b7c31b3f0a15f7200000c/groups/5ea0922502cf740001c01513
https://www.codewars.com/kata/reviews/5a4b7c31b3f0a15f7200000c/groups/5ea08dd42c977a0001dfcbcc
https://www.codewars.com/kata/reviews/5a4b7c31b3f0a15f7200000c/groups/5ea07aebc0c41f0001473fb9
This comment is hidden because it contains spoiler information about the solution
Still a duplicate.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution