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
Hint 1Approach
Hint 2Approach
Hint 3Pseudocode
Hint 4Full solution