Ad
  • Custom User Avatar

    No, I did not use this one. The one you linked describes Round Robin, the ones I used listed three or so other algorithms and did not involve round robin.
    I cannot find it now tho.

  • Custom User Avatar

    2 years later its like 2 chicken wings 8|

  • Custom User Avatar

    @hobovsky could you please share a link to those algorithms?

  • Custom User Avatar
  • Default User Avatar

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

  • Default User Avatar

    (python) Image is broken.

  • Custom User Avatar
  • 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

    I've tried some RR solutions from Zombie apocalypse kata here, and it managed to pass in ~10 seconds, so on a verge of timing out, but still doable. Maybe you need to improve your implementation?

    My solution is slightly faster than RR, runs in ~8.5s, and is based on another algorithm found in some scientific paper on the topic. The paper contained a couple of more algorithms, but I could not get them working, only the most basic one (but, apparently, still sometimes better than RR).

    Generally, there's quite a few materials and papers online with various approaches to the problem, up to some insanely high values (and equally insane algorithms).

    About ranks, you are right, they cannot be changed in an easy way. But since this kata has not many solutions yet, maybe something could be done. It would hjust have to be decided which kata shold be taken in what direction.

  • Default User Avatar

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

  • 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
  • Default 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)

  • Loading more items...