Earn extra honor and gain new allies!
Honor is earned for each new codewarrior who joins.
Learn more
  • Thanks. yea, I figured that out

  • It's something wrong with the Codewars environment in which the code is run (probably) as its sort mechanism behaves differently. At this point all you need is addingd an extra instruction to your sort function.

  • The problem may be that node version 8 is no longer supportedi in 2020 yet that seems to be the only version that we have the option of using on CODEWARS

  • Something wrong with this kata or CODEWARS itself. I've tested every test case in my IDE and it works perfectly, I produce the correct results. But when I enter it here it's wrong.

    It may have to do with the implementation of the sort function. I don't know and don't really care because the 1kyu bros in the comments are not actually being helpful

  • there has to be something wrong. All my tests pass and match the kata test cases in my ide but here, when I test it, I get different (wrong) results

  • ofcourse. This is why you use google and mdn or other docs

  • Yes, reworded description.

  • What language version are you trying to solve? I guess it's C or C++, right? If it is indeed C or C++, your process probably crashed and it's not easy to exactly tell why. You can share your code (remember abour spoiler flag!) and we will take a look.

  • Your code fails with 4, next time, please, mark your post as having spoiler content.

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

  • something wrong with this. It says 0 failed, which is true, but it has some exit code and isn't working as normal. I don't think I can submit it.
    Exit code 139. What is that?

  • I did mark it as spoiler, not sure why it didn't work. anyway, nevermind. I saw those errors but this works in vscode so I don't know why it doesn't work here

  • Ranks can't be changed.

  • The error is: Cannot read property 'toUpperCase' of undefined and it's your code's fault. You're trying to access the 0 position of an empty string and use toUpperCase with it. Next time, mark your post as having spoiler content please. You can see the input your code is failing because it's the third sample test.

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

  • Loading more items...