wes d2a2ba9e15 first commit il y a 4 ans
..
README.md d2a2ba9e15 first commit il y a 4 ans
code.cpp d2a2ba9e15 first commit il y a 4 ans
unitTest.cpp d2a2ba9e15 first commit il y a 4 ans

README.md

Reverse the Order of a String

by Alex Golubov tags: strings, formatting, sorting

Summary

Create a function that takes a string as its argument and returns the string in reversed order. Examples reverse("Hello World") ➞ "dlroW olleH" reverse("The quick brown fox.") ➞ ".xof nworb kciuq ehT" reverse("Edabit is really helpful!") ➞ "!lufpleh yllaer si tibadE" Notes You can expect a valid string for all test cases.

Instructions

Create a function that takes a string as its argument and returns the string in reversed order.

Examples

reverse("Hello World") ➞ "dlroW olleH"

reverse("The quick brown fox.") ➞ ".xof nworb kciuq ehT"

reverse("Edabit is really helpful!") ➞ "!lufpleh yllaer si tibadE"

Notes

You can expect a valid string for all test cases.