Tiny Tony's Magic Beard
Description:
Tiny Tony is a pirate, and he wants to grow a beard.
Tiny tony has an ideal beard length in mind, and he knows exactly how fast his beard grows. Tiny Tony also believes that by shaving, he can make his beard grow faster.
For every day Tiny Tony shaves his beard, instead of just letting it grow. His Beard Growth Speed will be increased. We will call this value the Shave Bonus
Using Beard Growth Speed, Shave Bonus, and Desired Beard length, please caculate the how it is possible for Tiny Tony to get the beard he wants and return the shaves and days taken like so
['1 shave', '4 days']
Tony cares about words being properly pluralised, so please be careful.
If there is no way for Tony to get his beard, please return
'Impossible'
If there are several possible ways to solutions, please return the one with the least amount of shaves required.
Similar Kata:
Stats:
Created | Aug 21, 2016 |
Published | Aug 21, 2016 |
Warriors Trained | 108 |
Total Skips | 16 |
Total Code Submissions | 127 |
Total Times Completed | 12 |
JavaScript Completions | 12 |
Total Stars | 3 |
% of votes with a positive feedback rating | 90% of 5 |
Total "Very Satisfied" Votes | 4 |
Total "Somewhat Satisfied" Votes | 1 |
Total "Not Satisfied" Votes | 0 |
Total Rank Assessments | 5 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 7 kyu |