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.
Sorry for offtop, but what software you used to generate this image? I was looking for something like that for a while
How does your algorithm fare on this test case?
Thanks, should be fixed now. I also added a fixed case similar to this to the tests.
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.
.
They're there now, thanks a lot :)
Thanks, it should be fixed now. I believe it came up because the original challenge was to return the element of the sequence
1/1 2/1 1/2 3/1 ...
, but I decided to swap the order so this happened. Honestly, just had to change a<=
to<
.Do you think I should test for this? It seems like a very specific problem that comes up with a very specific solution.
thx
Perhaps you should generate more variation in random tests. I would try to include patterns from each of the fixed test batches.
Did you prohibit some modules in Python?
Thank you for translation.
added
Loading more items...