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.
you should see what sagemath can do. I strongly recommend using sagemath as it is python 3 with a huge library of extra modules specifically for applied and abstract mathematics.
Wow, a nice example of how much difference the choice of programming language can make. Thanks for the explanation. So I'm going to correct myself: It's not the kata. But it's the Java translation (or the language itself) which makes things very difficult.
I wrote the original kata in Haskell.
The syntax for the function declaration and definition in Haskell is much simpler than in Java.
In fact some people considered the Haskell kata too trivial to be approved.
No, you are not a complete idiot. It's the kata which is very misleading. Consider this example code:
Note how the
cast(...)
method can be compared to what agridMap(...)
implementation is supposed to do. I hope this helps.It's just one step ahead of this one. Maybe you should try it first in Java.
Agree. I find that the descriptions on a lot of the code challenges lacking. Spend more time trying to work out what the question is rather than finding a solution. Glad it wasn't just me trying ot figure out what to do.
This comment is hidden because it contains spoiler information about the solution
Well, just tried it in Python and it was super easy.
I'm trying to learn Java and came across this kata. I was daunted by the syntax in the problem which I had never seen before. But I sat down, looked up the unknowns bit by bit, trying to understand what the problem was asking and how I might solve it.
Despite my best efforts I couldn't get anywhere close. Not just a bad solution, or a partial one, I simply couldn't write an answer which even ran. I know a little bit more about Function, lambda, and generics, but my confidence kinda took a hit.
Maybe this kata is totally misranked and should be much higher, or it just needs more explanation, or I'm a complete idiot. It could be the latter, I'm willing to admit that, but it feels like something is off with this kata.
Don't know why I didn't expect math to have a hypotenuse function. Should read the documentation.
My solution was similar to this one, but it shows the value of experience with the extras which they used:
I'm glad I got close, but even gladder I could reference this answer to learn a little more.
Thanks.