Ad
  • Custom User Avatar

    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!

  • Custom User Avatar

    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.

  • Custom User Avatar

    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!

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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!

  • Custom User Avatar

    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.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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 a question. I can tell you at least that you need to dynamically allocate memory for this function. don't forget NT

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution