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 general insertion of numbers one by one (numbers[0], numebers[1], etc) looked a bit ugly and your solution is literally what I've tried to find :3
Cool !! I learnt something new !!
This is the best solution in my opinion. Unfortunately, I haven't learned "stream" yet, and couldn't come up with a similar beautiful one. Thank you for showing me your code.
What will happen when the function received an array with a number greater than 9 or a negative number?
No validation of the given array.
Nice, I leaned something new today
like
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Great!I love this solution!
/signed on Java missing a spread operator.
Eligant solution and I learned from it. You Rock!
I love this!
This comment is hidden because it contains spoiler information about the solution
Did the same. Sadly Java does not provide a spread operator like other languages.