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.
Great Kata, thanks!
not bad, mate.
I think this solution is actually smart, good work
writing loops only to realise could've done just simple maths
+rep
Gauss would be proud! What a code.
This comment is hidden because it contains spoiler information about the solution
response to old question on performance:
my understanding is because the divisions are all repetition and the Math.Log is all repetition.
combined altogether, youre doing approximately more loops than what you think jt should be doing.
from cursory googling, the integer.sum method only accepts two numbers as parameters. How does this work with the stream function?
Does this code allow to check if the array is empty or not? E.g., when it contains neither element...
The way you used modulo operator to know the number is integer or not is a nice way to me, now I knew a new thing for today. Thanks :)
nice choose
This solution may produce StringIndexOutOfBoundsException if you put double space beetwen the words
Awsome code for me as Beginner. I like it. i Hope i can remeber the Arrays.stream looks much better then the standart for loop like i have
very clever but hard to read
Loading more items...