Thanks for the explanation! Saw some codes, didn't understand why we're updating at diff[L] and diff[R+1]. Understood the concept now. Thanks again!
@mandartule17 күн бұрын
Aryan bhai itni mehenat kaise kar lete ho ? Job + Making high-quality videos + following trends 🔥🔥🔥🔥🔥🔥
@InWonderland-z2l17 күн бұрын
amazing intuition building!! thank you so much
@SohanKumar-fp4ix17 күн бұрын
bhaiya, can you please explain how you concluded that the optimal approach would be prefix sum based, I didnt get the intuition of how we concluded things here.
@ironman-iu4zv16 күн бұрын
@Aryan Which tool are you using to explain? Can you please tell.
@vedangithokal486117 күн бұрын
wonderful man
@narendrak146517 күн бұрын
Did not get what carrying forward means
@mandartule17 күн бұрын
see as the whole range is incremented so rather than adding in each place we will add in start and subtract from last so when we will take prefix sum it will be adjusted
@ironman-iu4zv16 күн бұрын
he meant because when we add a value say at index i then that value is added to (i+1)th index since that is what prefix sum does and to the rest of the values in front as well.