2381. Shifting Letters II | Line Sweep | Prefix Sums for Range Sums/Range Impact

  Рет қаралды 2,769

Aryan Mittal

Aryan Mittal

Күн бұрын

Пікірлер: 9
@udit.kansal
@udit.kansal 17 күн бұрын
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!
@mandartule
@mandartule 17 күн бұрын
Aryan bhai itni mehenat kaise kar lete ho ? Job + Making high-quality videos + following trends 🔥🔥🔥🔥🔥🔥
@InWonderland-z2l
@InWonderland-z2l 17 күн бұрын
amazing intuition building!! thank you so much
@SohanKumar-fp4ix
@SohanKumar-fp4ix 17 күн бұрын
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-iu4zv
@ironman-iu4zv 16 күн бұрын
@Aryan Which tool are you using to explain? Can you please tell.
@vedangithokal4861
@vedangithokal4861 17 күн бұрын
wonderful man
@narendrak1465
@narendrak1465 17 күн бұрын
Did not get what carrying forward means
@mandartule
@mandartule 17 күн бұрын
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-iu4zv
@ironman-iu4zv 16 күн бұрын
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.
3413. Maximum Coins From K Consecutive Bags | Sliding Interval Hard
23:34
2017. Grid Game | Prefix & Suffix Sums
16:15
Aryan Mittal
Рет қаралды 2,1 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Shifting Letters II - Leetcode 2381 - Python
19:07
NeetCodeIO
Рет қаралды 12 М.
Prefix Sums - Problems, Code in C++ & Python
20:51
Errichto Algorithms
Рет қаралды 61 М.
Zig for the Uninitiated: Pointers, Arrays, and Slices
19:03
Tyler Calder
Рет қаралды 4,4 М.
523. Continuous Subarray Sum | Prefix Sums | Hash Map
11:52
Aryan Mittal
Рет қаралды 7 М.
Dynamic Programming isn't too hard. You just don't know what it is.
22:31
DecodingIntuition
Рет қаралды 241 М.
one year of studying (it was a mistake)
12:51
Jeffrey Codes
Рет қаралды 227 М.
Mastering Dynamic Programming - How to solve any interview problem (Part 1)
19:41
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН