7 kyu
Reverse words
63,767 of 154,256jnicol
Description:
Complete the function that accepts a string parameter, and reverses each word in the string. All spaces in the string should be retained.
Examples
"This is an example!" ==> "sihT si na !elpmaxe"
"double spaces" ==> "elbuod secaps"
Strings
Fundamentals
Similar Kata:
Stats:
Created | Oct 12, 2013 |
Published | Oct 12, 2013 |
Warriors Trained | 292226 |
Total Skips | 27915 |
Total Code Submissions | 559262 |
Total Times Completed | 154256 |
JavaScript Completions | 63767 |
Python Completions | 48063 |
Haskell Completions | 1003 |
C# Completions | 7028 |
Ruby Completions | 2276 |
Java Completions | 10758 |
TypeScript Completions | 6257 |
Rust Completions | 2593 |
C Completions | 1636 |
C++ Completions | 5842 |
Julia Completions | 156 |
PHP Completions | 4852 |
Go Completions | 2551 |
COBOL Completions | 12 |
Scala Completions | 183 |
Dart Completions | 100 |
Total Stars | 2451 |
% of votes with a positive feedback rating | 90% of 10429 |
Total "Very Satisfied" Votes | 8658 |
Total "Somewhat Satisfied" Votes | 1549 |
Total "Not Satisfied" Votes | 222 |