Retired
Case Sensitive (retired)
Description:
My friend Jeremiah is very sensetive to loud noises.
People talk to Jeremiah by passing him strings, but Jeremiah will get upset if anyone shouts at him. Shouting in a string is done by typing in ALL CAPITAL LETTERS (sorry Jeremiah)! Let's write a function that returns the string if it is safe to say to Jeremiah, and an empty string if it isn't.
Jeremiah doesn't mind the occasinal capital letter - he doesn't consider it shouting unless at least an entire word is written in all capitals letters. Your solution should not filter due to one-letter words such as " I ", and should still be able to detect shouting through punctuation such as " I'M ".
For example, Jeremiah doesn't mind this string:
shoutingDetector("I'm cURIOUS what you had for breakfast, Jeremiah.")
//We would want this string to be returned by our detector.
But if you were to say:
shoutingDetector("I'M VERY angry with you, JEREMIAH!")
//We had better prevent this argument from getting to Jeremiah by returning "".
Fundamentals
Regular Expressions
Similar Kata:
Stats:
Created | Mar 15, 2017 |
Warriors Trained | 122 |
Total Skips | 10 |
Total Code Submissions | 519 |
Total Times Completed | 66 |
JavaScript Completions | 66 |
Total Stars | 1 |
% of votes with a positive feedback rating | 68% of 41 |
Total "Very Satisfied" Votes | 24 |
Total "Somewhat Satisfied" Votes | 8 |
Total "Not Satisfied" Votes | 9 |
Total Rank Assessments | 43 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |