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.
This comment is hidden because it contains spoiler information about the solution
Nice!
I thought about the same approach too but didn't persue it to the end, so brute-force for me :P
@evk You should be able to solve it now :)All Fixed!
could you please post your code? I am trying to fix the kata :)
yes, I used vector product to determine side of line.
looks same as me ;-)
one more ques. Did your code pass this test?
Thats weird :( could you please check my random test cases and see what's wrong?
This time, it's really fixed, isn't it? ;-)
I know your solution is clever than mine ;-), I can improve my solution to solve the case like above. But I can't guarantee that every testcase is consistent with you, because my solution is a bit stupid(Although it runs faster than your code ;-)). I don't want to lengthen my code(will do the last fix for the case above), because now the test code can not be republish with 100 testcases(50 testcase can republish, but 100 testcase always fail).
So I will use my secret weapon to end this duel. Yes, the real ending(you will see, but later).
I think the difference between these results is not related to the bug of the code, it is more like the difference in intelligence. I will modify the test code, at least to ensure that the user's code is more intelligent than mine, that's OK ;-)
BTW: You changed the rank from 4kyu to 2kyu? Yes, I think it should be a proper evaluation ;-)
BBBBTW:I can't understand the logic of this case:
Your solution can got the all results, but my solution only can got:
I didn't figure out the logic...
my solution can get correct result too, if you test it in the old testcode? ;-)
Code more and more long...
Fixed?
I know what's happening, but I'm a bit busy now. So, please wait the ball ;-)
using your solution:
I added this to the basic tests
Smart logic ;-)
fixed? ;-)
EDIT: fixed, and smart than your solution ;-)
Now your solution seems is incorrect:
In some testcases, my solution opened all blocks, but your solution can not(return "?")
Loading more items...