Ad
  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    (python) Image is broken.

  • Default User Avatar

    What a painful kata! Like it!

    It says that I have the ability to edit/approve the kata, but I'm a little reluctant to muck about with approving/editing/creating things. I would like to first get more comfortable wth the established codewars processes, policies, conventions etc. Hence not yet a single kata done by me.

    Would any of the power users be so kind as to give me a rundown of what's ok and what's not in terms of editing/approving katas, etc.? Or even just point me to the right documentation perhaps?

  • Default User Avatar

    Thanks for this! I'll have to have a look at those Zombie solutions that pass here.

  • Custom User Avatar

    Wow, the optimization requirements are insane! The Round-Robin alogrithm doesn't work for this.. Can someone point me in the right direction (i.e. should I try to optimize the standard RR algorithm, or is there something else I ought to be googling for?)

    By the way, I don't know if kyu rankings can be changed post-factum, but, given that this is essentially the same problem (bar the optimization constraints) as the Zombie one https://www.codewars.com/kata/5d9b52214a336600216bbd0e/python, maybe this could be 3kyu (or the Zombie one 5 kyu)?

  • Default User Avatar

    The fact that your code runs fine when you click "Test" means only that it is passing the few listed examples in the sample tests. It does not mean your code runs correctly for every single test case. What likely happened is - your code was wrong and failed on one of the broader test cases that are only available when you click "Attempt".

    Try to troubleshoot and see where it's failing. Hint: adding print statements to your code can help.

    Marking this as resolved.

  • Default User Avatar

    Just click "Attempt" instead of "Test"

  • Custom User Avatar

    My Python solution is wrong, but passed all tests.

    A simple test that could be included to check for it: largest_arrangement([5051, 50]) = 505051 (should be 505150)

  • Default User Avatar

    поставь print(people) в начале своей функции и жми submit - тогда увидишь при каких значениях тест не проходит

  • Default User Avatar

    Nice, you're probably right, I was thinking that maybe stomach-space is less of a factor than speed (and one, presumably, can just gulp down a hamburger, but not a chicken wing)

  • Default User Avatar

    How can a chickenwing be worth more than a hamburger?

  • Default User Avatar

    Kata is broken. All test cases expect [0, 0].