Ad
  • Default User Avatar

    While I agree that some people are too soon to blame the kata while really the bugs in their code which are problematic (and reading those people's comments is VERY annoying), in other cases it is really the katas that should be blamed.

    The interpretation of this particular kata will be very different if the description states "Prepping for ALL PIZZAS must be done before ANY PIZZA can be put in the oven" (or "The chefs will start cooking the pizzas only after they have prepped ALL pizzas.") instead of "Prepping for a pizza must be done before it can be put in the oven".

    I don't know. Just a wild guess... Maybe in the world of the kata's creator, the kitchen does work that way, so the rules of the kata are set that way, and everyone else is forced to THINK MORE ABOUT IT because of that. (And of course the kata's creator is FREE to choose whatever rules he/she wants, just that there is also the responsibility to explain them.)

    Hope my comment doesn't offend anyone :P

  • Custom User Avatar

    Thanks for the feedback. I've asked the translator to fix this problem.(I guess that you are not using JS, right?)

  • Custom User Avatar

    No, didn't even check it: did we do the same kind of work to solve it?

  • Custom User Avatar

    I have made a new fork of the kata, I made the variable 's' to stringVar.

    Generally @myjinxin2015 will get to it pretty quickly.

    Thank you

  • Custom User Avatar

    I will change this now, thank you for the comment

  • Custom User Avatar
  • Custom User Avatar

    Voile, I'm sorry, my tone was out of line.

  • Custom User Avatar

    The tests are perfectly fine. If you don't understand, maybe... think more about it instead of blaming the kata?

    The kata has an easy solution that is also easy to reason about. It's not exactly easy to come up with, though.

  • Custom User Avatar

    I agree, this kata simply either isn't functioning properly or needs its instructions clarified.

    Considering it takes 15 minutes to prep 10 pizzas and 10 minutes to cook them, cooking should simply never add more than a constant amount of time to the total time elapsed.

    From trial-and-error, I first made the unrealistic/counterintuitive assumption that the pizza shop operates unefficiently: no pizza can be taken out of an oven until all pizzas are fully cooked--all pizzas should go in and out at the same time. In the 2nd test case,this would still allow for a completion time of 30.5 minutes: Prep 7 pizzas in 10.5 minutes, they cook from 00:10:30 until 00:20:30. While those are cooking, prep 6 pizzas in 9 minutes. Do nothing from 00:19:30 to 00:20:30, then take the first batch out of the oven and cook the second batch until 00:30:30.

    Continuing my trial-and-error, I found a passing solution and discovered that the situation is even worse--no pizza can be put into any oven until all pizzas have been prepped. Nobody who's ever worked at a busy pizza shop or watched the employees at one frantically keep up would expect a pizza shop to work that way unless the kata were to say it does.