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.
Actually I was hoping for a hint. :)
Numbers very big -> linear time won't work. I'll remove the DP tag.
Unfortunately your reply is hidden for me. Could you maybe reformulate without a spoiler? Thanks!
Could someone provide a hint on this, considering that one already has the linear time solution?
As a side note, IMHO, if linear time is not enough, I would remove the dynamic programming tag.
This comment is hidden because it contains spoiler information about the solution
The ray gets immediately reflected after travelling zero units. You can consider -a as the angle for h == 1 and a > 0
Could someone please explain how shall one consider the test cases where h == 1 and a > 0?
It would be helpful to add at least a long range test to the basic tests.
Strictly speaking, this is not needed...
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This was definitely fun, but I wouldn't call it simple. :)
First of all, really nice kata. :)
Could someone tell me what are the performance requirements (Python translation)? I'm passing ~400 test cases before it times out. Am I far away from the finish line?
Loading more items...