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.)
Ok, done. With a night of sleep in between, that's better. I'd though suggest some modifications to the description feel free to use them, part of them or not at all:
John learns to play poker with his uncle. His uncle told him: _"Poker cards have to be sorted in accordance with the order of `"2 3 4 5 6 7 8 9 10 J Q K A"`. The same order should be used for each color."_. But his uncle did not tell him the order of the four colors.
Given John's cards and Uncle's cards (two string `john` and `uncle`), sort John's cards correctly using as a reference to the order of Uncle's cards.
for python, can you please don't use 's' as a variable in the test script?
i defined my 's' string, and got overwritten by the 's' in the test script, it took me quite some time to find out what had gone wrong
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
very good kata, thanks!
Very interesting kata!
Thanks!
I am using python
But indeed it is same for me, my solution is just fine for 1 or 2 levels, lol :D
Thanks for the feedback. I've asked the translator to fix this problem.(I guess that you are not using JS, right?)
No, didn't even check it: did we do the same kind of work to solve it?
hahahhaa, did u just copy the code from the author?
in the description, it says n > 2
but in the random tests, n is sometimes 1 or 2, please fix it
Ok, done. With a night of sleep in between, that's better. I'd though suggest some modifications to the description feel free to use them, part of them or not at all:
Cheers
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
I will change this now, thank you for the comment
for python, can you please don't use 's' as a variable in the test script?
i defined my 's' string, and got overwritten by the 's' in the test script, it took me quite some time to find out what had gone wrong
No problem :)
Voile, I'm sorry, my tone was out of line.
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.
Loading more items...