6 kyu

Ciphers #2 - The reversed Cipher

337 of 577ngmhprogramming
Description
Loading description...
Fundamentals
  • Please sign in or sign up to leave a comment.
  • ameenj Avatar

    strings with a " " threw me off. Nice challenge

  • akar-0 Avatar

    Correct me if I'm wrong but I think the description does not describe at all the actual task. With Hello World! :

    • First, you need to reverse the string.

    -> '!dlroW olleH'

    • Then, the last character in the original string (the first character in the reversed string) needs to be moved to the back.

    Last character in the original is ! (if we consider punctuation marks as, the description states; otherwise it would be d ) so -> 'dlroW olleH!' or '!lroW olleHd'

    • Words will be separated by spaces, and punctuation marks can be counted as part of the word.

    Why do you refer to words ? Why and how should we consider words? It's not question about words in the previous instructions. If punctuation mark has to be counted as part of the world, why isn't it reversed just like the word itself?

    How can we get lleHo dlroW! following those instructions ?

  • Voile Avatar

    Approved

  • Voile Avatar

    Expected: 'undefined XA]N|kye5SY@fB|{TRbm\r[X{4', instead got: ' XA]N|kye5SY@fB|{TRbm\\r[X{4'

    Why is there undefined in the reference solution?

  • ngmhprogramming Avatar

    Please help fix the issue!

    • Wittybit Avatar

      I might help you. How can I write to you? email or something like that.

    • anter69 Avatar

      Python tests fixed, description updated -- see the kata editor for comments. Use the same method for other languages.

      Cheers