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.
Thank you very much, that comment of yours was game changing.
OK! Don't forget to upvote a post when it helps you:-)
You are editing the variables. So when you get the variable
yCTuZX
, you are taking the middle two (TU) and removing them from the variable. Then when I get the variable to test, it just sends my codeyCZX
because you have removed letters from it. Try duplicating the variable to a different veriable, or go with the better solution of using a method that doesn't affect the variables. If you keep changing variables that are sent to you, you are going to run into this issue a lot. So it is best to avoid doing that on Codewars. (I would speak for general coding practices, but I am not a ruby dev and I don't know if it is standard to edit incoming parameters.)Try to find all rotations of strng = "12341234" and you will see...