Comments

nice update :) , just yesterday I was hoping we had something like this!!

On AtkiyaCP is Depressing, 23 months ago
0

can relate:(

i think you are looking for this.

thanks bro i was struggling with the other method

Eventually , you'll fall in love with solving problems and your rating will just be a number. I would say Keep up solving , learning is far more rewarding than any rating after a certain point.

:)np

if x1 > y1 and x2 > y2 you could always increment x all the way and than y , remember we have to reach x2 and y2 eventually not that y2 is already there to hinder with x

okay the problem is that when the sum > r you are sliding the left side which is fine but you are not taking care — if after all the sliding the sum ends up lower than "l" and now your "sum =0" at the begining will discard the sum which could have been used

that's cool! simple sliding window would suffice too

I think it's just that if you dry run for some cases you can see a cycle forming and then optimise