Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I solved all the test cases except for the first one... His stubs add 3.6 extra cigarettes but the solution requires us to add 4. How does he get an extra cigarrette out of 0.6? That doesn't make sense. Unless I'm doing something wrong, we should rounding down and not up. Frustrating.
For those having trouble with this one; literally follow the steps provided in the description. It's laid out exactly how you should code it. I struggled with it for a while trying to use indexing before I took a step back and realized that they lay out every step, including variable and boolean assignment. Hopefully this helps anyone having issues.
This should be at least a 6 kyu.
Duplicate
Don't comment tests next time please. I was confused why my code doesn't work
I really hope the author of this kata doesn't format functions like this on a regular basis...
Nobody told you that, but I won't give you anymore hints. Either you solve it or forfeit it.
Okay. I made a mistake when I wrote "2 minutes each side" when I meant 2 minutes per pancake. If you're suggesting that you eat half cooked pancakes and that's "thinking outside of the box" then I'm even more frustrated with the wording and expectations of this kata. This kata needs to be reworded with a clearer explaination.
No, it's:
And your problem is you're thinking one pancake = 2 minutes, it's either raw or cooked when there is another state.
How can you expect 3 (minutes) when each pancakes need one minute for each side ? Or maybe you prefer semi cooked pancakes?... or i didn't understand something ?
400 people have solved this. It's supposed to be tricky, you need to think outside the box.
This cannot be right. I've even had friends double-check my logic, and they all agree that my code should work, and that whoever wrote the problem was incorrect.
imo I think the person who made this needs to take it down and fix it.
yeah that's what I'm saying. but if you have more time spent than the minimal, then that is what's going on. unless you're burning them that is.
the task was written by a person who does not know how to write them, just guess what the person was thinking when he wrote it
If you're trying to cook as many "cutlets" as possible so you get to "n" quickest; why would you ever have empty space in the pan? This is the part that doesn't make sense. Any sort of "trick question" type of solution really shouldn't apply to a 7 kyu kata, regardless of my humility.
Loading more items...