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.
If you look at it from a performance point of view, this solution will benefit when compared with a solution that uses Sequence. During my research, Sequence takes between 5 and 13 seconds, while a solution based on while takes 0 seconds
duplicate issue
duplicate issue
duplicate issue
Why on earth does nobody care to fix this kata? It is WRONG. When you want to beat somebody by one, you need to have ONE more point - not the exact same score, which is what the tests require you to do. PLEASE FIX THIS! Thank you.
-1
assertEquals()
with input in the assertion message. Remove theprintln()
.WOW
I agree with you! 😂 Umayer you did a good job on this one, but try to rethink your solution using the KISS principle 😊
Cool
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Excellent points. I agree, this should not have been upvoted as Best Practice.
This solution does use
O(number/3)
memory. It is possible to solve it in much less memory.The debates about
goto
andcontinue
are eternal andNever say Never
. It's highly recommended to avoid using these features, but in some particular seldom cases they can be really helpful to solve the existing problem and keep code clean. There is even a special chart inComplete Code
aboutgoto
:D I'm 100% agree with you thatcontinue
could be ommitted here as well as with others marks.i and j are any two indices in the array. If one element in the array is larger than another one, change it to the difference between the two.
Loading more items...