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.
yeh, but there is this this theorem called shoelace that lets you easily get the area of any polygon given the points regular or not regular.
i mean u could have calculated the mean once and define it as a variable, would have been faster
wait are the polygons not regular?
i dont think its computed on ur computer but actually code wars servers. My solution does it for 4000! 40 times in under 5 in IntelliJ but it times out when i submit
that is not practical at ALL
why did u brute force it
Maybe it's not an issue but wasn't there a prettier way to fail a test than yelling an error?
Anyway, nice kata.
(JS)
???
wait how big does the list get
[-4, -6, 2, 6] should equal [-6, -4, 6, 2]
[-3, -10, 7] should equal [-10, -3, 7]
[-8, -2, 7, 1] should equal [-2, -8, 1, 7]
[-6, -7, 8, 10, 9] should equal [-7, -6, 10, 8, 9]
[-3, -10, -6, 4, 2] should equal [-3, -6, -10, 2, 4]
how
its not even sorting
you can try. But it will time out.
can't i just ignore the given range size value and just brute force it?