7 kyu
Boiled Eggs
703 of 16,778BattleRattle
Description:
You are the greatest chef on earth. No one boils eggs like you! Your restaurant is always full of guests, who love your boiled eggs. But when there is a greater order of boiled eggs, you need some time, because you have only one pot for your job. How much time do you need?
Your Task
Implement a function, which takes a non-negative integer, representing the number of eggs to boil. It must return the time in minutes (integer), which it takes to have all the eggs boiled.
Rules
- you can put at most 8 eggs into the pot at once
- it takes 5 minutes to boil an egg
- we assume, that the water is boiling all the time (no time to heat up)
- for simplicity we also don't consider the time it takes to put eggs into the pot or get them out of it
Example (Input --> Output)
0 --> 0
5 --> 5
10 --> 10
Mathematics
Algorithms
Similar Kata:
Stats:
Created | Dec 21, 2013 |
Published | Dec 21, 2013 |
Warriors Trained | 23145 |
Total Skips | 1007 |
Total Code Submissions | 56691 |
Total Times Completed | 16778 |
JavaScript Completions | 7712 |
CoffeeScript Completions | 302 |
Ruby Completions | 1613 |
Haskell Completions | 468 |
Python Completions | 4579 |
C# Completions | 703 |
PHP Completions | 661 |
Crystal Completions | 11 |
C++ Completions | 842 |
Rust Completions | 203 |
TypeScript Completions | 260 |
COBOL Completions | 11 |
R Completions | 57 |
RISC-V Completions | 19 |
C Completions | 257 |
Factor Completions | 8 |
Java Completions | 96 |
Total Stars | 137 |
% of votes with a positive feedback rating | 93% of 1834 |
Total "Very Satisfied" Votes | 1612 |
Total "Somewhat Satisfied" Votes | 186 |
Total "Not Satisfied" Votes | 36 |