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.
The problem is not limited to a 3d sphere, that's why it's called Hyper Sphere ;)
Can someone further explain this problem to me? How can you have a point with 4 or more coordinates within a 3d object?
This comment is hidden because it contains spoiler information about the solution
Time for me to go practice with inject!
I think the initial value is 0 by default, so don't think we need that here?
Also, I think I would have a return true if coords.empty? so that it doesn't try to do that expensive exponent function in that case ...
Yes, nice use of the initial value (which I forgot about and used a short circuit). This is neater.
Beautiful clean code!
Oh, I'm sure it's technically ok. I'm basically just bitter
Im not so sure. classic recursive trick i think
This comment is hidden because it contains spoiler information about the solution
It needs to be made clear that you want the solution in the same order as the dictionary (or amend the test to allow any ordering). Otherwise seems good to go.