Ad
  • Default User Avatar

    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...

  • Custom User Avatar

    At that point you've pretty much taught yourself it. I'd say that would be fine.

  • Default User Avatar

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar
    1. If it is a "no-deal-scenario", how come there are over 180 successful solutions?

    2. Bananas do not contradict the order requirement. It works like that:

      s       Bananas from Bahamas
      part 1               Bah  as
      part 2  Bananas from    am
      
    3. "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 expected false. I don't see how this is the problem.

  • Custom User Avatar

    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