67. Reverse a String
Foundation1000 ms256 MBSolved by 0%
Read one line of text and print it with the characters in reverse order.
Spaces are characters too, and reverse along with everything else.
Constraints - The line has between 1 and 100000 characters. - Printable ASCII only.
Input
A single line of text.
Output
Print the line with its characters in reverse order.
Inputhello
Outputolleh
Noteis a single word
Inputhello world
Outputdlrow olleh
Notecontains a space, so reading only the first word gives the wrong answer
Hints
Four rungs, in order. The last two open once you have submitted an attempt. A wrong one counts.
Hint 1Where to start
Hint 2The approachOpen hint 1 first. This one carries on from it.
Hint 3PseudocodeOpen hint 2 first. This one carries on from it.
Hint 4Full solutionOpen hint 3 first. This one carries on from it.