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.
Nice solution. Cant there be more than 2 most common weekdays? Thanks.
so smart
i traced the code, what i observed was that u are ignoring the negtive elements while addinf and assigning it to max found
but according to the description we can't do that
Impressively simple! I hopefully have learned something here!
this is beautiful
what does this line of code actually means beg = weekday(year, 1, 1) and end = weekday(year, 12, 31) ?
spoiler flag...! x/
This comment is hidden because it contains spoiler information about the solution
If the numbers you added previously resulted in a negative number, that means you can ignore them for your subarray. Basically imagine starting after those numbers, since those would just make your subarray sum smaller.
This comment is hidden because it contains spoiler information about the solution
good explanation and so strange code, fully ignorirng explanation
Nice solution!
I don't get this either. Has to do with the "if current < 0: current = 0" lines. A nasty shortcut for sure.