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
Similar Kata:
Stats:
Created | Oct 10, 2016 |
Published | Oct 10, 2016 |
Warriors Trained | 23586 |
Total Skips | 1232 |
Total Code Submissions | 40273 |
Total Times Completed | 17733 |
JavaScript Completions | 6735 |
Python Completions | 6908 |
PHP Completions | 1105 |
Haskell Completions | 338 |
C Completions | 544 |
Clojure Completions | 275 |
Ruby Completions | 550 |
C# Completions | 1016 |
Crystal Completions | 26 |
TypeScript Completions | 521 |
COBOL Completions | 9 |
CoffeeScript Completions | 13 |
Scala Completions | 42 |
Java Completions | 414 |
Total Stars | 168 |
% of votes with a positive feedback rating | 91% of 2295 |
Total "Very Satisfied" Votes | 1945 |
Total "Somewhat Satisfied" Votes | 309 |
Total "Not Satisfied" Votes | 41 |
Total Rank Assessments | 8 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |