Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Thanks!
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.
I couldn't get it out of my head
good that it didn't
let you down
after allNot gonna lie, I was hoping that this kata had something to do with the Electric Light Orchestra. But I enjoyed it anyway!
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!
It can be VERY hard to solve certain problems without a loop. In fact, some performance kata's require a
O(1)
solution, instead ofO(n)
, so don't judge a kata's difficulty on its flavour for loops.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.
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?
This comment is hidden because it contains spoiler information about the solution
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. :-)
Ah Right, I was sleep walking after all. Thanks for the hint
The question is how often the boy misses the bus.
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.
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...