Home Problems Volumes Ranking Forum Help News Mess

Reverse String

Volumes:   String Tricks

Who solved this?

best programming related toys I've used (what?):
Arduino Uno Ultimate Starter Kit (with manual)
by Vilros
Perhaps the easiest way to feel the fun
of embedded programming with Atmel
I wish I have one 5 years ago :)

Quite a simple task - just to start learning strings...

Input data will contain a single string of small latin letters and few spaces.
Answer should contain the string of the same length with the same characters but in reverse order.


input data:
four score and seven years ago

oga sraey neves dna erocs ruof

Though some languages especially functional has built-in function for this, please try perform it on your own and 'in-place' i.e. moving characters of the same string instead of copying them to the new one.

You need to login to get test data and submit solution.