Comic Book Hero - The Flash - Saving Lives (retired)
Description:
The Flash travels around the world at super human speed to save lives. He completes the task multiple times throughout a single day. Since The Flash can travel through time, it is estimated that he can travel faster than the speed of light (671,080,888 MPH). The speed equates to 186,282 miles per second.
Obviously, The Flash will encounter obstacles during his heroic duties. It is estimated that he will loose half his speed for two seconds while encountering the obstacle.
During the act of saving a life, The Flash's speed will reduce to 1 mile per second to ensure he doesn't obliterate the victim upon approach. He will also spend 3 seconds in the act of saving a life.
Given a time (provided as an integer in seconds), obstacles encounted, miles he needs to run and lives he needs to save, you must write a function that will return a True or False value if he is able to save all of the lives in the allotted time.
Please assume that there will always be a life to save, The Flash will always need to travel to complete his tasks and there will always be at least one obstacle in his path.
Similar Kata:
Stats:
Created | Mar 29, 2017 |
Warriors Trained | 174 |
Total Skips | 56 |
Total Code Submissions | 376 |
Total Times Completed | 32 |
Python Completions | 32 |
Total Stars | 4 |
% of votes with a positive feedback rating | 66% of 19 |
Total "Very Satisfied" Votes | 11 |
Total "Somewhat Satisfied" Votes | 3 |
Total "Not Satisfied" Votes | 5 |
Total Rank Assessments | 17 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |