Whenever I am stucking on problem coming on youtube & searching for your solution video Amazing solutions.
@bhaveshkumar68423 жыл бұрын
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
@probabilitycodingisfunis13 жыл бұрын
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
@divyangdheer72922 жыл бұрын
jyada hogya bhai
@bhaveshkumar68422 жыл бұрын
@@divyangdheer7292 hmmm... Abhi mujhe bhi aisa lag raha hai. Par comment rehne deta hoon
@priyadarshiroy95843 ай бұрын
@@bhaveshkumar6842which year r u in?
@divy047 ай бұрын
got the intuition by my own, just couldnt implement it, Once again beautiful explanation
@NeelakshiSachdeva6 ай бұрын
How did you build the intuition on your own?? I couldn't even think of it 😢
@NeelakshiSachdeva6 ай бұрын
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
@mohanavamsipidugu44192 жыл бұрын
mam i love to watch your explaination ...great teaching.Thank you
@yashasvprajapati6851 Жыл бұрын
great video and to the point, great explanation, thank you for the video
@kapilpatel9379 Жыл бұрын
I was not able to understand 100% but got the idea thanks
@ShivamKumar-qv6em2 жыл бұрын
Great work . Very helpful content
@AnkitKumar-ys7vs Жыл бұрын
Thanks for the great explanation
@adityaverma49022 жыл бұрын
really helpful, thank you very much di🙏🙏🙏
@anurag__pathak Жыл бұрын
The girl behind her is like sone do yrr 🤣🤣
@sulakshGaming Жыл бұрын
I noticed that as well😂😂
@bharathKumar-or6gd2 жыл бұрын
great explanation mam good, hoping to expect more videos on leetcode questions haven't seen with good visual with step-by-step approach
@chandraprakashsahu85572 жыл бұрын
there are various explanation of every problem in youtube but i like you and your video 😁 btw Nice explanation 👌👌
@ramgopalbhajans39822 жыл бұрын
I too😀 like u and your videos
@harikalakshmisainannapanen1816 ай бұрын
thankyou so much di🙏🙏
@vinodhkumar53293 жыл бұрын
nice explaination mam! thank you
@gandhijainamgunvantkumar67832 жыл бұрын
amazing explanation :)
@sanketmane58382 жыл бұрын
great explanation mam
@kumarutkarsh124820 күн бұрын
4:52 your brother😅
@basicGyaan072 жыл бұрын
someone is there in your background :)
@prakhyat20012 жыл бұрын
Thanks a lot 🙌🏻
@devanshdixitmusicallyyours3885 Жыл бұрын
kindly provide code as well which u explain in video , it will be helpful for us.
@KD-xi9wu2 жыл бұрын
But this code doesn't work for -ve numbers array isn't it???????
@sakshamsrivastava62803 жыл бұрын
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.
@monikaraut52662 жыл бұрын
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
@monikaraut52662 жыл бұрын
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
@techworld76582 жыл бұрын
why cant we sort the whole array and calculate sum -of last 3 index?
@rajathkumar38222 жыл бұрын
Apka laptop ka ram kithna hoga. Ye tabs enthe kule he😂. Ryzen ka he kya or Intel i5 11gen.
@krupaharan123454 ай бұрын
Can't this be solved better with prefix and suffix array in O(n) time ?
@anuruddhtiwari77532 жыл бұрын
Ma'am why you not solving potd daily,we daily waiting your video
@priyadarshiroy95843 ай бұрын
How to handle duplicates in this question 😢😢😢
@Idukhan-jj9kc2 жыл бұрын
👍👌
@jigarjoshi91982 жыл бұрын
we can do it in O(n ) by sorting array and fetching last three elements sum as answer?
@dakshdolka8002 жыл бұрын
no
@jigarjoshi91982 жыл бұрын
@@dakshdolka800 yes I know it will be not accepted !