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.
Then we should also add the following
+S(R1 ∩ R2 ∩ R3) = 100
😃
There are 100 random tests...
I passed 10-13 random tests and then it times out, so it seems there are several random tests. One of the posts below says there are around 25 random tests, could be more. My code takes average 500ms to pass one random test, I believe I will have to pass each random test in less than 100ms to complete all tests.
My solution in Python reaches the "rectangles have only common faces (version 2)" random test then times out. Ported to Javascript, it passes in approx. 9 seconds.
If you get a time out then you have not passed the whole random tests.
Test passed
means you passed some (or one) of them but not the whole bunch.but I do pass the random tests.
random tests
some more randomized rectangles
Test Passed
STDERR
execution Timed Out (12000 ms)
what's wrong here ? does it make sense ?
Random tests generally represent the real difficulty (your code passing fixed tests in a reasonable amount of time doesn't guarantee it is efficient enough for the whole tests). If your receive time out and no failed test, it just means this: your code didn't return incorrect result but it times out at some time (it hasn't returned all the results it should have).
Is there everything all right with the test here.
I am quite satisfied with the solution I've created here - I am able to pass all the tests in less than 1 second togheter with all difficult cases.
Of course difficult cases takes the biggest part here:
Completed in 689.78ms
and then the random tests go in - the result says I've passed it too (it's green, it takes over 9sec) but the total result is failed anyway because of the time exceeded.
no failed tests at all. Is there something I dont understand ? need help
how many random tests are there
Ye, it is quite infuriating ;p
This comment is hidden because it contains spoiler information about the solution
You could log the inputs to console to see what they are.
It's the area of the union of all rectangles.
is there anybody out there?
I asked you a question a while ago. can you explain this to me? @Blind4Basics
Loading more items...