We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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?
Array Manipulation
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?