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

Stats:

CreatedOct 12, 2013
PublishedOct 12, 2013
Warriors Trained292226
Total Skips27915
Total Code Submissions559262
Total Times Completed154256
JavaScript Completions63767
Python Completions48063
Haskell Completions1003
C# Completions7028
Ruby Completions2276
Java Completions10758
TypeScript Completions6257
Rust Completions2593
C Completions1636
C++ Completions5842
Julia Completions156
PHP Completions4852
Go Completions2551
COBOL Completions12
Scala Completions183
Dart Completions100
Total Stars2451
% of votes with a positive feedback rating90% of 10429
Total "Very Satisfied" Votes8658
Total "Somewhat Satisfied" Votes1549
Total "Not Satisfied" Votes222
Ad
Contributors
  • jnicol Avatar
  • jhoffner Avatar
  • bkaes Avatar
  • NicholasSeward Avatar
  • NiklasE Avatar
  • anter69 Avatar
  • nbeck Avatar
  • russfre Avatar
  • Chrono79 Avatar
  • kazk Avatar
  • Blind4Basics Avatar
  • a.merezhanyi Avatar
  • Voile Avatar
  • Madjosz Avatar
  • Souzooka Avatar
  • rowcased Avatar
  • hobovsky Avatar
  • stellartux Avatar
  • user8436785 Avatar
  • ejini战神 Avatar
  • akar-0 Avatar
  • tobeannouncd Avatar
  • KayleighWasTaken Avatar
  • big_M Avatar
Ad