Ad
  • Custom User Avatar

    I think ORDER BY clauses don't have a guaranteed order in SQL, yeah? Well I think for practical reasons, a kata like this needs to be a bit strict to make testing realistic (having to accomodate all permutations of solution orders across arbitrary levels of nesting will make the tests even more complex). But you're right that if an assumption like this is to be made, then it needs to be explicitly stated the description. The JS version makes it explicit but only in the tests, and the other translations (which I think you were solving) don't make it explicit at all. I think you should reraise this as an issue.

  • Custom User Avatar

    Yes. Those characters must be dealt with by ignoring them. (a problem I had with the final submission)

    ex: "++st+" would mean incrementing memory by 3.
    ex: "+++" would mean incrementing memory by 3.

    Athough I believe the submission tests did not have the following input (in Swift), i believe the algorythm should also be able to handle super long increment input like:

    "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"

    This above is 528 increments... which should be the letter "H". (Hint, modulo)

  • Custom User Avatar

    @KH!,

    May you please post your solution here and mark it as a spoiler? That way, I'll be able to test your solution and perhaps help you debug it.

    Cheers,
    donaldsebleung

  • Custom User Avatar

    ![alt text](address)

  • Custom User Avatar

    credit to rsnake

  • Custom User Avatar

    Cool, then I started rewording your description.

    Next steps are adding random test cases and deciding what happens when more replies have the same number of occurrences; I would pick the first one, discarding the note in the description in which you say "order does not matter", but you will be the judge here.

    Cheers :)

  • Custom User Avatar

    Do you mean an individual or a collective? If you mean everybody, then you can just go to the "Solutions" tab on the Kata. If it's an individual:

    1.) If they have made a comment on a Kata/Kata solution, you can click "View Solution" under their comment.

    2.) If they have completed a Kata and you want to see their solution directly I can only think of one way. The only way is to follow them, then go to the Kata solutions, then click "Solutions of Users I am Following" and find the solution from that user.

    3.) Otherwise, you have to search manually in the Kata solutions tab from the Kata.

  • Custom User Avatar

    https://www.codewars.com/kata/5943f1d6ed724ca56f000022

    Fix the shared link. The correct is this one, without /edit/python

  • Custom User Avatar

    Quoting from the Kata Description itself:

    Any characters in a MiniStringFuck program other than + or . are simply non-command characters (no-ops, i.e. do nothing) and therefore can serve as comments in the program.

    Hope this answers your question :D

  • Custom User Avatar

    The order is very very important. If you don't know what the order is, perhaps you can not pass the tests ;-)

  • Custom User Avatar

    Which part don't you understand?