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

Stats:

CreatedOct 10, 2016
PublishedOct 10, 2016
Warriors Trained25605
Total Skips1586
Total Code Submissions49577
Total Times Completed16329
JavaScript Completions6070
Python Completions6391
PHP Completions866
C# Completions892
Haskell Completions265
Java Completions1956
C Completions374
Scala Completions19
CoffeeScript Completions10
Groovy Completions9
Total Stars281
% of votes with a positive feedback rating93% of 2204
Total "Very Satisfied" Votes1913
Total "Somewhat Satisfied" Votes252
Total "Not Satisfied" Votes39
Total Rank Assessments8
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • myjinxin2015 Avatar
  • suic Avatar
  • fabs Avatar
  • PG1 Avatar
  • donaldsebleung Avatar
  • Voile Avatar
  • Souzooka Avatar
  • rowcased Avatar
  • Hades2004 Avatar
  • Daniel Ray Avatar
  • hobovsky Avatar
  • rge123 Avatar
  • FranzMartyn Avatar
  • KayleighWasTaken Avatar
  • saudiGuy Avatar
Ad