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

Stats:

CreatedOct 12, 2013
PublishedOct 12, 2013
Warriors Trained293603
Total Skips28017
Total Code Submissions561404
Total Times Completed154917
JavaScript Completions63954
Python Completions48334
Haskell Completions1007
C# Completions7052
Ruby Completions2278
Java Completions10810
TypeScript Completions6287
Rust Completions2608
C Completions1646
C++ Completions5877
Julia Completions156
PHP Completions4869
Go Completions2576
COBOL Completions12
Scala Completions186
Dart Completions108
Total Stars2454
% of votes with a positive feedback rating90% of 10447
Total "Very Satisfied" Votes8673
Total "Somewhat Satisfied" Votes1552
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