wes d2a2ba9e15 first commit | 4 jaren geleden | |
---|---|---|
.. | ||
README.md | 4 jaren geleden | |
code.cpp | 4 jaren geleden | |
unitTest.cpp | 4 jaren geleden |
by Alex Golubov tags: strings, formatting, sorting
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.
Create a function that takes a string as its argument and returns the string in reversed order.
reverse("Hello World") ➞ "dlroW olleH"
reverse("The quick brown fox.") ➞ ".xof nworb kciuq ehT"
reverse("Edabit is really helpful!") ➞ "!lufpleh yllaer si tibadE"
You can expect a valid string for all test cases.