Ad
  • Custom User Avatar
  • Custom User Avatar

    Approved at 7 kyu based on the consensus, but some will have to think a little harder than usual for a 7 kyu. I especially liked the extra information provided as a reward for solving it.

  • Custom User Avatar

    I couldn't get it out of my head

  • Custom User Avatar

    good that it didn't let you down after all

  • Custom User Avatar

    Not gonna lie, I was hoping that this kata had something to do with the Electric Light Orchestra. But I enjoyed it anyway!

  • Custom User Avatar

    What I really like about this kata is the two-part challenge. First you need a winning strategy, then you need to code it accurately. My first two attempts failed for faulty strategy. Thanks for the fun!

  • Custom User Avatar

    Also, I don't think I've seen a level 5 that doesn't require a loop.

    It can be VERY hard to solve certain problems without a loop. In fact, some performance kata's require a O(1) solution, instead of O(n), so don't judge a kata's difficulty on its flavour for loops.

  • Custom User Avatar

    As I recall, you click that option to edit and then click on Rank (which is separate from Average Rank). I don't believe it requires any actual editing changes. But as I say, I rarely approve katas, so others will be more familiar with the process.

  • Custom User Avatar

    By the way, what exactly is needed to approve? I sometimes see the green bar "You have the ability to approve this kata. You simply need to edit the kata and set its rank. .... Edit/Approve Kata"

    I see the average rank. But if I republish, it doesn't seem to have any effect. Do I have to edit the description in some way?

  • Custom User Avatar

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

  • Custom User Avatar

    Thanks for approving.

    Maybe I should explain why I originally posted the kata at rank 6.

    The book only shows that one example, which is a simple calculation. So I was originally thinking rank 7. When I started extending it to other cases, I realized it was significantly harder. (I was only confident my solution was correct when it matched the results of simulation). But I'm not very good at geometry problems, so I wasn't sure how hard it was. Also, I don't think I've seen a level 5 that doesn't require a loop.

    No insult to the problem was intended. :-)

  • Custom User Avatar

    Ah Right, I was sleep walking after all. Thanks for the hint

  • Custom User Avatar

    The question is how often the boy misses the bus.

  • Custom User Avatar

    Not sure if I'm sleep walking or if this was just overlooked
    due to only a few people having tried this nice kata yet.
    Anyhow imho the edge case are reversed, take for instance:

    test.assert_approx_equals(catch_the_bus(("4:53 PM", "5:00 PM"), ("4:47 PM", "4:52 PM")), 0, margin)

    This means the boy (second parameter) always arrives before the bus (first parameter) leaves,
    hence the adssigned probability should be 100 not 0.

  • Custom User Avatar

    Thanks, both of you, for the feedback. I generally avoid being the one to approve a kata, because I sometimes miss issues or lesser problems that others catch. But this one seemed definitely ready for approval.

    I was actually thinking about a 4 kyu ranking (definitely not 6), but went with 5 for the reason mentioned above and the fact that a 4 would have been out of line with other votes.

  • Loading more items...