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.
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
Maybe add "puzzle" to the description. I'm not sure "basic language features" and "fundamentals" is suitable to describe this kata, as C does not have any generic datatype.
What excactly does #include "solution.txt" do? Is it documented somewhere?
Fun game :-)
Doing the C version.
It's fine this is being a kyu 7 puzzle, but no feedback at all?
Is "That's not the flag" an error message, or what you're supposed to find?
Labeling it an issue because it's not clear what's being returned.
Loading more items...