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.
Are you sure, Stefan? I calculate this as
O(n log n)
. And from what I can tell, your solution seems to beO(n log n)
too.Can anyone confirm?
Okay
Fixed for JavaScript, TypeScript, Java, C# and PHP.
Python fork with fix
(adds tests for arrays with leading zeroes and expects those zeroes to be included)
size of lists are now within given limits
Awesome!
Great solution and impressive explanation - kudos for you!
Fixed.
This comment is hidden because it contains spoiler information about the solution
Please add similar test cases for every axis (2 visible points):
[(-1, 9), (1, 9)]
[(-1,-9), (1,-9)]
[(-9,1), (-9,-1)]
[(9,-1), (9,-1)]
Depending on how exactly degree calculated any of them can represent "overflow" test case.
If I disable overflow check in my solution then it fails for one of them - but still passes kata's test suite.
0 is a multiple of 0, so 0 at index 0 should pass the test. The only way you can pass the tests (at least in Java) is to ignore element 0, meaning that only the wrong solutions pass :(
Ummmm... Whoops :P
Haha. Brute force, I like it.
This comment is hidden because it contains spoiler information about the solution
Similar tests have been added to Python. I've seen that some solutions have been invalidated. Let me know if you see some that still pass. Those shouldn't, as the two properties are very strict.
Loading more items...