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.
Still no tests in Swift.
You don't need to come up with a sorting algorithm. You need to find the smallest distance between any points.
I managed to do it by basically checking the least times I could. In other words: calculating the distance to the smallest subset of points that included the shortest distance possible, for every point.
Same problem here. Random tests do seem to be broken. My results are the same as the ones in the comments of the code aywee posted.
I'd expect it to have an elegan solution. That doesn't seem to be the case in Go.
I'm not convinced that using Big Int is a good solution because of memory usage, but i'm curious of advantages like being easier to code than other solutions. It's probably faster than many too.
Fixed (maybe there was a better way to do it but it works).
For what i undestood if the ball jumps just to the height of the window, then the mom should see it either zero or once. I think it's counted as zero since it doesn't pass her laser eyes
It is true, one can see by printing the arguments that basic tests always provide "aaa b". Something is broken here.
The Sample Tests that run with the "Test" button in Golang are not working. I discovered that these tests just expect "aaa" in all of the cases