8 kyu

Exclamation marks series #4: Remove all exclamation marks from sentence but ensure a exclamation mark at the end of string

6,908 of 17,733myjinxin2015

Description:

Description:

Remove all exclamation marks from sentence but ensure a exclamation mark at the end of string. For a beginner kata, you can assume that the input data is always a non empty string, no need to verify it.

Examples

"Hi!"     ---> "Hi!"
"Hi!!!"   ---> "Hi!"
"!Hi"     ---> "Hi!"
"!Hi!"    ---> "Hi!"
"Hi! Hi!" ---> "Hi Hi!"
"Hi"      ---> "Hi!"
Fundamentals

Stats:

CreatedOct 10, 2016
PublishedOct 10, 2016
Warriors Trained23586
Total Skips1232
Total Code Submissions40273
Total Times Completed17733
JavaScript Completions6735
Python Completions6908
PHP Completions1105
Haskell Completions338
C Completions544
Clojure Completions275
Ruby Completions550
C# Completions1016
Crystal Completions26
TypeScript Completions521
COBOL Completions9
CoffeeScript Completions13
Scala Completions42
Java Completions414
Total Stars168
% of votes with a positive feedback rating91% of 2295
Total "Very Satisfied" Votes1945
Total "Somewhat Satisfied" Votes309
Total "Not Satisfied" Votes41
Total Rank Assessments8
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • myjinxin2015 Avatar
  • jhoffner Avatar
  • betegelse Avatar
  • GiacomoSorbi Avatar
  • suic Avatar
  • shadowmanos Avatar
  • user8476848 Avatar
  • donaldsebleung Avatar
  • kazk Avatar
  • JohanWiltink Avatar
  • Voile Avatar
  • rrit Avatar
  • Madjosz Avatar
  • Souzooka Avatar
  • rowcased Avatar
  • FArekkusu Avatar
  • user9644768 Avatar
  • hobovsky Avatar
  • trashy_incel Avatar
  • akar-0 Avatar
  • KayleighWasTaken Avatar
  • saudiGuy Avatar
Ad