Maximum Sum Triplet

  Рет қаралды 19,877

Code with Alisha

Code with Alisha

Күн бұрын

Пікірлер: 45
@adeshchhajed8473
@adeshchhajed8473 2 жыл бұрын
Whenever I am stucking on problem coming on youtube & searching for your solution video Amazing solutions.
@bhaveshkumar6842
@bhaveshkumar6842 3 жыл бұрын
You are easily one of the best teachers I have ever come across online/offline. This was IMMENSELY helpful! Please cover all programming questions on InterviewBit because your in-depth explanations are of great help. Just a suggestion (i know it doesn't matter much though): if(i==n-1) will be checked for all n iterations of the first for loop. So, instead of that if condition inside the loop, you could have written right[n-1]=A[n-1] before the first for loop. Again, please cover all questions. It's immensely useful for me. Thank you for helping me out
@probabilitycodingisfunis1
@probabilitycodingisfunis1 3 жыл бұрын
Thank you Bhavesh, yes writing suffix array with the right[n-1] initialized before is better, and yes, I will try to cover all the questions from InterviewBit
@divyangdheer7292
@divyangdheer7292 2 жыл бұрын
jyada hogya bhai
@bhaveshkumar6842
@bhaveshkumar6842 2 жыл бұрын
@@divyangdheer7292 hmmm... Abhi mujhe bhi aisa lag raha hai. Par comment rehne deta hoon
@priyadarshiroy9584
@priyadarshiroy9584 3 ай бұрын
​@@bhaveshkumar6842which year r u in?
@divy04
@divy04 7 ай бұрын
got the intuition by my own, just couldnt implement it, Once again beautiful explanation
@NeelakshiSachdeva
@NeelakshiSachdeva 6 ай бұрын
How did you build the intuition on your own?? I couldn't even think of it 😢
@NeelakshiSachdeva
@NeelakshiSachdeva 6 ай бұрын
I'm not able to build intuition to any question from my scratch. Always have to look for video. Can you suggest some tips pls
@mohanavamsipidugu4419
@mohanavamsipidugu4419 2 жыл бұрын
mam i love to watch your explaination ...great teaching.Thank you
@yashasvprajapati6851
@yashasvprajapati6851 Жыл бұрын
great video and to the point, great explanation, thank you for the video
@kapilpatel9379
@kapilpatel9379 Жыл бұрын
I was not able to understand 100% but got the idea thanks
@ShivamKumar-qv6em
@ShivamKumar-qv6em 2 жыл бұрын
Great work . Very helpful content
@AnkitKumar-ys7vs
@AnkitKumar-ys7vs Жыл бұрын
Thanks for the great explanation
@adityaverma4902
@adityaverma4902 2 жыл бұрын
really helpful, thank you very much di🙏🙏🙏
@anurag__pathak
@anurag__pathak Жыл бұрын
The girl behind her is like sone do yrr 🤣🤣
@sulakshGaming
@sulakshGaming Жыл бұрын
I noticed that as well😂😂
@bharathKumar-or6gd
@bharathKumar-or6gd 2 жыл бұрын
great explanation mam good, hoping to expect more videos on leetcode questions haven't seen with good visual with step-by-step approach
@chandraprakashsahu8557
@chandraprakashsahu8557 2 жыл бұрын
there are various explanation of every problem in youtube but i like you and your video 😁 btw Nice explanation 👌👌
@ramgopalbhajans3982
@ramgopalbhajans3982 2 жыл бұрын
I too😀 like u and your videos
@harikalakshmisainannapanen181
@harikalakshmisainannapanen181 6 ай бұрын
thankyou so much di🙏🙏
@vinodhkumar5329
@vinodhkumar5329 3 жыл бұрын
nice explaination mam! thank you
@gandhijainamgunvantkumar6783
@gandhijainamgunvantkumar6783 2 жыл бұрын
amazing explanation :)
@sanketmane5838
@sanketmane5838 2 жыл бұрын
great explanation mam
@kumarutkarsh1248
@kumarutkarsh1248 20 күн бұрын
4:52 your brother😅
@basicGyaan07
@basicGyaan07 2 жыл бұрын
someone is there in your background :)
@prakhyat2001
@prakhyat2001 2 жыл бұрын
Thanks a lot 🙌🏻
@devanshdixitmusicallyyours3885
@devanshdixitmusicallyyours3885 Жыл бұрын
kindly provide code as well which u explain in video , it will be helpful for us.
@KD-xi9wu
@KD-xi9wu 2 жыл бұрын
But this code doesn't work for -ve numbers array isn't it???????
@sakshamsrivastava6280
@sakshamsrivastava6280 3 жыл бұрын
great video, but i have a question here , if we are taking just smaller on the left of the current element while traversing the main array , then we are making the suffix array, if for left we are taking the lower bond, shouldn't for the right largest we should be taking the upper bound. or we are taking the right most greatest element in the form of suffix array , why are not doing the prefix array as well for the left side also. any reasons would be appreaciated. thanks.
@monikaraut5266
@monikaraut5266 2 жыл бұрын
For a element, we want to find greatest element on right side, hence we are taking suffix array… But it’s not the same case for finding element from left side.. Here ,we are not searching for smallest element on the left side, but we are searching for greatest element on left side which is less than element . Hence using suffix array will not work for left side
@monikaraut5266
@monikaraut5266 2 жыл бұрын
Also if you take suffix array for left side..it may give element which is more than the middle element… this will violate the constraints given in the problem.. Constraint:- Ai
@techworld7658
@techworld7658 2 жыл бұрын
why cant we sort the whole array and calculate sum -of last 3 index?
@rajathkumar3822
@rajathkumar3822 2 жыл бұрын
Apka laptop ka ram kithna hoga. Ye tabs enthe kule he😂. Ryzen ka he kya or Intel i5 11gen.
@krupaharan12345
@krupaharan12345 4 ай бұрын
Can't this be solved better with prefix and suffix array in O(n) time ?
@anuruddhtiwari7753
@anuruddhtiwari7753 2 жыл бұрын
Ma'am why you not solving potd daily,we daily waiting your video
@priyadarshiroy9584
@priyadarshiroy9584 3 ай бұрын
How to handle duplicates in this question 😢😢😢
@Idukhan-jj9kc
@Idukhan-jj9kc 2 жыл бұрын
👍👌
@jigarjoshi9198
@jigarjoshi9198 2 жыл бұрын
we can do it in O(n ) by sorting array and fetching last three elements sum as answer?
@dakshdolka800
@dakshdolka800 2 жыл бұрын
no
@jigarjoshi9198
@jigarjoshi9198 2 жыл бұрын
@@dakshdolka800 yes I know it will be not accepted !
@systemforge
@systemforge 3 жыл бұрын
woah...
@Idonnoknow2246
@Idonnoknow2246 3 жыл бұрын
how to contact you
@probabilitycodingisfunis1
@probabilitycodingisfunis1 3 жыл бұрын
probabilityisfun63@gmail.com
@allinonetechnicalvideosfor7609
@allinonetechnicalvideosfor7609 2 жыл бұрын
@@probabilitycodingisfunis1 🤣
Minimum Lights To Activate #InterviewBit || Intuition + Code + Example
19:16
Longest subarray with sum divisible by K | GfG problem of the day
16:48
Code with Alisha
Рет қаралды 11 М.
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
GFG POTD: 25/09/2023 | Maximum Sum Combination | Problem of the Day GeeksforGeeks
21:13
Kadane's Algorithm | Maximum Subarray Sum | Finding and Printing
20:09
take U forward
Рет қаралды 535 М.
How I learned to code in 3 months (and got several offers)
12:54
Coding Jesus
Рет қаралды 211 М.
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
How to: Work at Google - Example Coding/Engineering Interview
24:02
Life at Google
Рет қаралды 7 МЛН
Leetcode 329. Hard || Longest Increasing Path in a Matrix
20:56
Code with Alisha
Рет қаралды 8 М.