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.
How is this voted best practice/clever when when it changes the original array?
Submitted a Java translation.
So this was my first attempt at using java streams. I would love any advice to make it more 'functional'. Thanks
I'm wondering how this kata is related to functional programing and lambdas for Java. Most of the solutions I've seen have all been imperative procedures.
I'm still new to Lambda expressions in Java, anybody have success using them with this?
Thank you, I was thinking this exact thing. I've been learning functional programing a lot recently, and one of the core concepts I've learned is imutablity and side effects. Setting the area of the triangle object in that function kind of defeats those core concepts.
I haven't solved this problem yet, but you can purposely return a wrong string like "debug". Then this will at least let you see the what the cases are. My solution is too slow for the final test. I've ran it on my machine, and it takes way too long. Guess I gotta get better at mathematics.
This is a great solution!
This solution passes the tests, but it is wrong