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

Stats:

CreatedOct 12, 2013
PublishedOct 12, 2013
Warriors Trained301254
Total Skips28518
Total Code Submissions574363
Total Times Completed159163
JavaScript Completions65285
Python Completions50087
Haskell Completions1021
C# Completions7238
Ruby Completions2309
Java Completions11079
TypeScript Completions6469
Rust Completions2677
C Completions1702
C++ Completions6102
Julia Completions157
PHP Completions4960
Go Completions2703
COBOL Completions12
Scala Completions199
Dart Completions152
Total Stars2508
% of votes with a positive feedback rating90% of 10564
Total "Very Satisfied" Votes8769
Total "Somewhat Satisfied" Votes1568
Total "Not Satisfied" Votes227
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
  • trashy_incel Avatar
  • user8436785 Avatar
  • ejini战神 Avatar
  • akar-0 Avatar
  • tobeannouncd Avatar
  • KayleighWasTaken Avatar
  • big_M Avatar
Ad