Ad
  • 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?