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.
Same with JavaScript
Because
sort
isn't stable in all of them.Possibly yeah :/ I am just not sure why it spits out different results on different platforms
First, it's a question not an issue of the kata (notice that 7505 people passed the JS kata; if there were problems somebody else would already said!). Second, the answer is: your code is wrong:-) I strongly doubt that it gives correct answers for all tests on another platform...
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Yes, printing the input, in javascript, use
console.log()
i honestly dont know why but i have corrected it. I just want to see the test that I failed so i can go over why they failed, is there any way to do that?
https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution#print-input
Your code is wrong, you're returning true inside the loop, why?
This comment is hidden because it contains spoiler information about the solution
anyway to get a pass for this code ^^
Yeah i figured a bit of it out and i think this code works its just that it exits the code on the 36th test. My code needs to be optimized apparently but i have no idea how lol.
Rather than post that much code and expect someone to explain why it doesn't work, can you give more info?
Does it work at all, if not what errors do you see in the console?
If it works but only for some cases, which cases does it fail on? Can you provide a test case which your code does not pass?
Giving a bit more info will likely get you a more helpful response.
sorry, now it is formatted properly
This comment is hidden because it contains spoiler information about the solution
Loading more items...