How much coffee do you need?
Description:
Everybody know that you passed to much time awake during night time...
Your task here is to define how much coffee you need to stay awake after your night. You will have to complete a function that take an array of events in arguments, according to this list you will return the number of coffee you need to stay awake during day time. Note: If the count exceed 3 please return 'You need extra sleep'.
The list of events can contain the following:
You come here, to solve some kata ('cw').
You have a dog or a cat that just decide to wake up too early ('dog' | 'cat').
You just watch a movie ('movie').
Other events can be present and it will be represent by arbitrary string, just ignore this one.
Each event can be downcase/lowercase, or uppercase. If it is downcase/lowercase you need 1 coffee by events and if it is uppercase you need 2 coffees.
Similar Kata:
Stats:
Created | Sep 18, 2016 |
Published | Sep 18, 2016 |
Warriors Trained | 2772 |
Total Skips | 58 |
Total Code Submissions | 6805 |
Total Times Completed | 1559 |
Ruby Completions | 125 |
JavaScript Completions | 809 |
Python Completions | 674 |
Crystal Completions | 11 |
CoffeeScript Completions | 12 |
Total Stars | 40 |
% of votes with a positive feedback rating | 89% of 344 |
Total "Very Satisfied" Votes | 282 |
Total "Somewhat Satisfied" Votes | 47 |
Total "Not Satisfied" Votes | 15 |
Total Rank Assessments | 12 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |