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.
That algorithm looks interesting, I also used 2 for loops for doing this kata...
took me some time to understand too
Kadane's algorithm
How is it possible that the final result is ordered?
Love it
This is horrible but i find it funny that it works so in a sense its correct I guess xd
This comment is hidden because it contains spoiler information about the solution
wtf
I don't think that making 16 functinons of one line each is the most readable approach. I know in the book clean code, more or less that's what is taught, but I think that from a pragmatic point of view, 4 or 5 functions of 4-5 lines each is easier to read and less complicated.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
It's a good solution, but I would've called the first variable repeatedValue, instead of x. Because the first time I read this I got confused and I thought that x was the unique value, but it isn't. It is not very clear what each variable is because of the poor naming.