You are viewing a single comment's thread. Return to all comments →
I could understand that we are tracking start(a) and end(b) points and in between them all are sum of K.
But i couldn't understand the last loop.
Can anyone please explain why summing the array will work for our solution?