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.
fixed
Neither tests nor example solution use numpy, but balance on the random tests is not great. I just modforked the python version and while majority of runs completes below 2 seconds, it's not ucommon to get some tests to take 5 to 9 seconds to occassional timeout.
But still, majority of runs completes in a short time, so I'd guess you have still something to improve.
Can't get anywhere. I hope we don't need some numpy tweeks to pass this one in Python.
i found a solution thats 48 characters long, how could i shorten it
Yay, I found the easter egg :D But now I'm stuck :(
what
Do I need to make random tests harder? o_0
Sorry for offtop, but what software you used to generate this image? I was looking for something like that for a while
My solution is just an optimized version of permutating active tasks and calculating minimum time needed, so it's supposed to work.
How does your algorithm fare on this test case?
The current reference solution returns suboptimal answers in some cases, for example:
As shown in the Gantt chart below, the optimal answer is no more than
(4) + (5) + (6) + (7) = 47
minutes, while the reference solution returns48
.Thanks, should be fixed now. I also added a fixed case similar to this to the tests.
The current reference solution returns a clearly incorrect answer in the following test case:
Ahh, that's on me. There was an error in comparing polygons that was corrected in the sample tests but not the main ones. Should be fixed now.
In
Fixed Tests
-Simple Case
-Test 1
, I got the following message:Could you explain why my answer is incorrect? 🤔
Loading more items...