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.
By using so many languages, it's not a surprise you can't remember syntax and libraries. It may be better to master a language and then change to another one, instead of "using" lots of languages without even knowing/remembering the basics.
It would be the same, if a person claims to speak 5 languages, but then needs a dictionary to ask a simple question. Sometimes, less is more...
At that point you've pretty much taught yourself it. I'd say that would be fine.
So to answer @warkentien2's question, is it considered appropriate to use stackoverflow or google to help solve katas? IE, I don't copy and paste the solution from somewhere else, but I use the web to find methods, check syntax, check libraries, etc.
Thanks,
I'm pretty sure it's been there all along, but it's easy to get into a mode where you skim over the text of the error and just read the results, especially in this case where the error looks the same as the ones you were getting but the context is suddenly different.
From the upvotes, it looks like you're not the only one who encountered the problem.
I'm sure there's a user experience lesson in there somewhere.
See also
pioraid
's answer to the question above for more infomation.If anyone can find a good description URL I can put that in the error message too.
This is a test of changes to the INPUT array rather than the output result as in all the other tests.
I've added some more text to the test failure message which hopefully makes this clearer.
Randomized tests can prevent this kind of cheating. If there was no other way to solve a kata but to hardcode the tests, by the time of 180+ solutions accumulated this discussion would be full of issue reports, not to say this kata would never leave beta. Besides, I skimmed through the solutions before my answer to you, as well as solved this kata myself, and also translated this into a couple of languages, so I really knew this kata is solvable and the description is valid.
Bananas from Bahamas and the tricky random cases are not out of order. If your solution fails on them, it's wrong, I'm afraid.
Other users had the same problem. That's why those cases are called "tricky" and why this kata is ranked a 5. :-)
See Djabx's comment below, for example, it describes how "Bananas from Bahamas" is in order.
It you're still stuck, let me know and I'll be more explicit about what makes this case tricky.
If it is a "no-deal-scenario", how come there are over 180 successful solutions?
Bananas do not contradict the order requirement. It works like that:
"Can handle characters in wrong order" test cases are supposed to check that your solution marks wrong-ordered-cases as false. If your solution does not pass these tests, it cannot check that "codewars" is NOT a merge of "code" and "wasr", and returns
true
instead of expectedfalse
. I don't see how this is the problem.If I am understanding correctly, cheat detection works by checking if you are modifying system internals so that you don't do something that makes 1+1=3