7 kyu
Reverse words
63,954 of 154,917jnicol
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 | 293603 |
Total Skips | 28017 |
Total Code Submissions | 561404 |
Total Times Completed | 154917 |
JavaScript Completions | 63954 |
Python Completions | 48334 |
Haskell Completions | 1007 |
C# Completions | 7052 |
Ruby Completions | 2278 |
Java Completions | 10810 |
TypeScript Completions | 6287 |
Rust Completions | 2608 |
C Completions | 1646 |
C++ Completions | 5877 |
Julia Completions | 156 |
PHP Completions | 4869 |
Go Completions | 2576 |
COBOL Completions | 12 |
Scala Completions | 186 |
Dart Completions | 108 |
Total Stars | 2454 |
% of votes with a positive feedback rating | 90% of 10447 |
Total "Very Satisfied" Votes | 8673 |
Total "Somewhat Satisfied" Votes | 1552 |
Total "Not Satisfied" Votes | 222 |