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 ended up noticing that a few minuets latter so I added a '\0' at the end and it ended up working. Forgot some C compilers do not always interprit char arrays the same. Thanks for the help!
I think the problem is how the string (or char array) is (or isn't) terminated. I barely know C, but adding that made the code work.
Your solution (I just tried it) passes the kata. Moreover it is a question, not an issue of the kata since 1036 guys passed the C kata. Cheers!
This comment is hidden because it contains spoiler information about the solution
Ok, sorry, next time i will post it as a spoiler context , I did not pay attention on that, thanks for info! I wanted to use this method, as I saw od mdn documentation I can make comparisons in argument with functions sort(). But I've just used another way to solve it. But it is good to know that I should not have abused sort methods. Thanks a lot!
Because you're abusing
sort
there (it's not stable in javascript btw), I think you wanted to use another method to compare the letters. Don't forget to mark your post as having spoiler content next time.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Hi @silverdimos, an
issue
is when there's a problem with the kata. If you have a question about your code, you could post as aquestion
. I can tell you at least that you need to dynamically allocate memory for this function. don't forgetNT
This comment is hidden because it contains spoiler information about the solution