8 kyu
Exclamation marks series #6: Remove n exclamation marks in the sentence from left to right
6,070 of 16,329myjinxin2015
Description:
Description:
Remove n
exclamation marks in the sentence from left to right. n
is positive integer.
Examples
remove("Hi!",1) === "Hi"
remove("Hi!",100) === "Hi"
remove("Hi!!!",1) === "Hi!!"
remove("Hi!!!",100) === "Hi"
remove("!Hi",1) === "Hi"
remove("!Hi!",1) === "Hi!"
remove("!Hi!",100) === "Hi"
remove("!!!Hi !!hi!!! !hi",1) === "!!Hi !!hi!!! !hi"
remove("!!!Hi !!hi!!! !hi",3) === "Hi !!hi!!! !hi"
remove("!!!Hi !!hi!!! !hi",5) === "Hi hi!!! !hi"
remove("!!!Hi !!hi!!! !hi",100) === "Hi hi hi"
Fundamentals
Similar Kata:
Stats:
Created | Oct 10, 2016 |
Published | Oct 10, 2016 |
Warriors Trained | 25605 |
Total Skips | 1586 |
Total Code Submissions | 49577 |
Total Times Completed | 16329 |
JavaScript Completions | 6070 |
Python Completions | 6391 |
PHP Completions | 866 |
C# Completions | 892 |
Haskell Completions | 265 |
Java Completions | 1956 |
C Completions | 374 |
Scala Completions | 19 |
CoffeeScript Completions | 10 |
Groovy Completions | 9 |
Total Stars | 281 |
% of votes with a positive feedback rating | 93% of 2204 |
Total "Very Satisfied" Votes | 1913 |
Total "Somewhat Satisfied" Votes | 252 |
Total "Not Satisfied" Votes | 39 |
Total Rank Assessments | 8 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |