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.
"Good resolution, I was overcomplicating this exercise. I'm really not good at this, honestly."
This comment is hidden because it contains spoiler information about the solution
Thanks,learn a lot!
Amazing Bro
Thanks, this was helpful eventhough I'm a year late.
Great solution, I think is one of the efficent. Great:)
Not a best practice, for sure.
What do you mean by this? Can you explain how it uses more memory?
Hey why does this work without including string.h? When I tried using strlen I got a "no implicit function declaration" error...
You are correct; this prompts a warning:
format specifies type 'int' but the argument has type 'size_t'
.Since count is of type size_t, I think the format specifier should be %zu instead of %d.
Well, that's what I did. Why should I think (or how should I realize) that it's bad? ... P.S. it occurs to me after a few minutes that I'm testing and choosing every time
qsort_r
callscmp
and not just the one time. If that's the only reason, I guess it's bad enough.in the ASCII table you will find '\0' is equal to the demical '0'.
*buffer = 0; is equivalent to *buffer = '\0'
Or, maybe I wrote it this way for fun, not ever intending it to be production code...
This comment is hidden because it contains spoiler information about the solution
Loading more items...