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.
syka blyat .. good one )) Prosto zaebis
Best practice?
Look no switch :)))
O(N^2) Best practice... wow. )))
I don't understand the point of sorting. You will need to iterate everything anyway. Sorting won't answer question about frequency of items.
Well, you define max variable and compare it only when you increase variable and I think you won't need to iterate again.
)) Never mind. Yeah, just unusual
You need to insert " " while moving from last to first, in this case shifts are minimal.
Wow. String operations.. Definitely best practice... NOT
Who pressed Clever and Best practices... String operations are not good in java to do this.
Author of this kata is a fucking dick, so damned this should be an answer for shitty designed tests... Damned.. wasted time.
And or better || if any of them are 0, you'll get zero. right?
0120 5 => 0
12050 => 0
You also need to loop to Integer.MAX and back to make performance even worse
String concatenation is a road to hell :)
4 people have no idea how bad is string concatenation ... :)
Loading more items...