2054. Two Best Non-Overlapping Events | Knapsack DP | Line Sweep + Greedy | 3 Approaches

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

Aryan Mittal

Aryan Mittal

Күн бұрын

Пікірлер: 13
@ARYANMITTAL
@ARYANMITTAL 11 күн бұрын
Accha lage to plsssssss Like thok dena Non Overlapping Intervals - kzbin.info/www/bejne/m3O0lIGaqpmjsKs Merge Intervals - kzbin.info/www/bejne/Y2S0e3p4osd-a9k Insert & Merge Intervals - kzbin.info/www/bejne/fX2xlGmonsyDfM0 I'll recommend to watch these also ❤
@ironman-iu4zv
@ironman-iu4zv 11 күн бұрын
Bro I really appreciate you taking the time to post a whole 30 minute video. It helped a lot.
@Jazzimus
@Jazzimus 10 күн бұрын
Another implementation suggestion for the line sweep solution, for some point: [start, end, val], we can insert {start, val} and {end + 1, -val}. Since val is always >= 1 (given in constraints) we can use this to differentiate between start and end points and while maximizing previous max we do abs(val). This also works with line sweep since for some endi == startj, the end will get handled first since its val is -ve.
@vaibhavyadav3301
@vaibhavyadav3301 11 күн бұрын
Now because of yesterday.s problem you are again switching back to cpp . please provide both language codes , Thank You for creating these videos, very helpful for us.
@ARYANMITTAL
@ARYANMITTAL 11 күн бұрын
Nhi nhi bro, i’ll stay on java, for me to switch to java, was a very thoughtful decision, but many of you guys wanted code in cpp, thus brought it back. (But yeah, will paste java code also)
@ShivamSingh-xv4rw
@ShivamSingh-xv4rw 11 күн бұрын
Upload today contest solution sir
@ARYANMITTAL
@ARYANMITTAL 11 күн бұрын
Lamba saans lo 😂 (::jackie shroff meme::)
@Tech_Explorer-d6g
@Tech_Explorer-d6g 11 күн бұрын
Hi if you can provide code it will be helpful for beginners, Thank you so much for your support in my coding journey. :)
@shashikiran5385
@shashikiran5385 11 күн бұрын
For me the 1st solution is not intiutive at all, I came up with the 2nd and 3rd though. This dp is no way intiutive to anyone.
@siddarthreddykoppera5930
@siddarthreddykoppera5930 11 күн бұрын
finally someone said this. I feel the same
@VaishnavBarbade
@VaishnavBarbade 11 күн бұрын
aryan try to explain code in hindi because its understandable many people able to understand hindi you just posting videos in english because some people not able to understand it but majority people able to understand hindi.
@atindraask8074
@atindraask8074 11 күн бұрын
No majority is english shut and watch it
@atindraask8074
@atindraask8074 11 күн бұрын
Interviews can't be in hindhi
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Let's coding  is live!
Let's coding
Рет қаралды 40
57. Insert Interval | 56. Merge Intervals | 2 Approaches
27:47
Aryan Mittal
Рет қаралды 4,2 М.
Mastering Dynamic Programming - How to solve any interview problem (Part 1)
19:41
769. Max Chunks To Make Sorted | Prefix Sums | Multiple Approaches
14:09
Two Best Non Overlapping Events | Leetcode 2054
22:27
Techdose
Рет қаралды 7 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН