7 kyu
Reverse words
65,285 of 159,163jnicol
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 | 301254 |
Total Skips | 28518 |
Total Code Submissions | 574363 |
Total Times Completed | 159163 |
JavaScript Completions | 65285 |
Python Completions | 50087 |
Haskell Completions | 1021 |
C# Completions | 7238 |
Ruby Completions | 2309 |
Java Completions | 11079 |
TypeScript Completions | 6469 |
Rust Completions | 2677 |
C Completions | 1702 |
C++ Completions | 6102 |
Julia Completions | 157 |
PHP Completions | 4960 |
Go Completions | 2703 |
COBOL Completions | 12 |
Scala Completions | 199 |
Dart Completions | 152 |
Total Stars | 2508 |
% of votes with a positive feedback rating | 90% of 10564 |
Total "Very Satisfied" Votes | 8769 |
Total "Somewhat Satisfied" Votes | 1568 |
Total "Not Satisfied" Votes | 227 |