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.
Given a 2D array of some suspended blocks (represented as hastags)
I'm assuming the description is supoosed to read hashtags, not hastags.
Why use the term whitespace when only space is used?
Applies to the C-version.
I could have tagged with issue, question or suggestion for that matter.
C tests seems to be broken. No matter what I return it's a success. It's working for "attempt"
Yep, it looks like it should now!
Doing the C version.
For a level 7 kyu kata, it would be nice with something in between
The test-samples
attempt-samples
I respectfully disagree.
Doing the C version.
What excactly is passed on to the testfunction? Pointers to strings? Pointers to arrays of strings? Pointers to pointers? Does it say so anywhere?
Based on the description of the task I would expect to get two pointers to strings, and return -1, 0 and 1 depending on which string should be first. But I don't get that.
This is a kyu 7. Specific instructions expected.
I was expecting the supplied data not to be mutable. But as I wrote I'm not sure how it was intended.
For the C version.
The function is defined as
However, the data pointed to by gifts is still mutable, i.e you don't need to make a copy in order to sort.
Marked as issue as I'm not sure what was intended.
I'll just point out that imul can't correctly multiply uint64_t. Not that I believe really larges values has been used here.
Doing the C-version.
I'm curious if I understand this correctly.
the second testcase shows this :
When I print out the parameters, len is 5 and n is 5.
When I look into the testcase source, the array being tested is
What I don't understand is the len passed on to my program is 5, then len of the source code is 5, but the code testing it displaying the error is using a length of 7. I believe the error messaging/printing might be wrong.
Very nice kata
One could point to the fact that integer is not a datatype/keyword in c, whereas int is. As it reads "each argument is assumed to be a non-negative integer" it's certainly not telling you which int is in use.
It's kyu 7.
This comment is hidden because it contains spoiler information about the solution
Loading more items...