Triplet Sum in Array | Array | Love Babbar DSA Sheet | Hindi
Vložit
- čas přidán 9. 07. 2024
- Time Stamps :
Problem discussion : 0:00
Brute force approach: 01:48
Optimal approach : 03:00
Algorithm discussion : 05:34
Code explanation : 07:06
Time Complexity Discussion : 08:05
Time Complexity : O(n*n)
Space Complexity : O(1)
Problem Link : practice.geeksforgeeks.org/pr...
C++ Code Link : github.com/Ayu-99/Love-Babbar...
Python Code Link: github.com/Ayu-99/Love-Babbar...
Love Babbar DSA Sheet : drive.google.com/file/d/1FMdN...
Please like, share and subscribe if you found the video useful. Feel free to ask in comments section if you have any doubts. :)
#DataStructuresAndAlgorithms
#LoveBabbarDSASheet
#interviewpreparation
Triplet Sum in Array solution
Triplet Sum in Array Leetcode
Triplet Sum in Array C++
Triplet Sum in Array C++ Hindi
Triplet Sum in Array Hindi
Checkout the series: 🔥🔥🔥
👉 Array: • Arrays
👉 Recursion : • Recursion
👉 Stack and Queue : • Stack And Queue
👉 Greedy : • Greedy
👉 Dynamic Programming : • Dynamic Programming
👉 Leetcode contests : • Leetcode contests
👉 Leetcode June Challenge : • Leetcode June Challenge
👉 Leetcode July Challenge : • Leetcode July Challenge
LIKE | SHARE | SUBSCRIBE 🔥🔥😊
Your explanation>>>>
the way of teaching is mindblowing, keep it up sister, great job......, god bless u
yes ...you deserved to be subscribed by every coders☺
Thank you so much Jatin 🤗
mam, can i say that for i loop should run till i < n-2 not i
Thanks for giving the concept of three sum using 2 pointers approach really helpful
Glad it helped. :) Please share with your friends and juniors
Ye video dekhte hi mene Turant Subscribe button Dabaya 👏. Well Explained 👌
Thank you Shobhit 🥹🤘🏻
Thank you Shobhit 🥹🤘🏻
Thank you Shobhit 🥹🤘🏻
Dii, aap bhaut easily explain kar dete ho complex chizo ko. Thanku di and please make more video on coding questions ask in written and interview questions🙏.
Thank you so much Suruchi, sure I'll make videos on these problems as well 🙂
i fall in love with your voice and explanation mam
Thanks a lot Pawan🤩
Awesome Video
Really Helpfull! Thank You Ayushi Didi
Welcome Suraj, glad it was helpful 🙂
kya awssum approach hai and i love the way you break down the problem and one more thing can you please make a video on time and space complexity i find it tough because i dont have maths background after 10th : }
Thank You for the explanation ✌
Welcome :). I'm glad it was helpful
gfg testcases didnt have any duplicates in array right if there are any we have to skip right for no of triplets
Liked your approach it really helped me ...
💯
Glad u liked it 🤗
Are didi concept 🙌🙌🙌🙌🙌🙌🔥🔥🔥🔥
🥺🥺🙌🏻🙌🏻✌🏻
Helpful indeed
Thanks🤗
Lovely ❤❤❤❤❤ explanation
Thanks Sonu😊
Thanks for this. 🙂
Welcome. Glad it helped :)
very good explanation thanks
Welcome Gourav, glad it was helpful :)
But We Don't need to run a for lop till the end n and it need then why give me a reason
Thanku ❤️
Welcome, glad it was helpful ❤
well explained!!
Thanks Tarun, glad it was helpful :)
thank u so much didi...this video tells me lot...now i know how to appoach ...any problem....how to do some mathematical calculation and then how to write psudo code or algo..for that one then after doing this....almost 90% work is done...only u write code and run...and also one more thing ...how to use constraints for managing time and space complexity..
once again didi ...thanks a lot
Thank you so much Ankit🥺😊. Haan, I'll make a video on how to guess time complexity on basis of constraints
@@AyushiSharmaDSA yes as early as possible
@@ankittiwari2328 yes ✌🏻
Best explaination maam 💛
Thank you Karanjit :)
@@AyushiSharmaDSA keep going :)
really helpful videos
Thank you. Glad they are helpful :)
Didi, I have subscribed your channel.
Thanks a lot 😊
wah didi wah........................................
Thank you :)
outer loop n-2 tk nahi chalna chaie ? n kyu
Ayushi can u provide solution to leetcode weekly contest problems ?
Sure Saunak, I'll surely do if I am able to participate in it. :)
please do a video for duplicate elements
Sure
Di ,with due respect from which college you are?
Hi Ayush, I have graduated from Guru Nanak Dev Engineering college
Ek request can you please make video on pair sum question in which duplicates are also present. Please make video without using map. Please if possible make this video.
Sure, can you please share the link of the problem
Shouldn't the complexity be O(n^2logn)? because sorting is also used.
complexity will be O( n^2) + O(logn)
=> O(n^2)
@@rawat_ji5183 can you explain this?
@@ayushagrawal7760 Yes
let us assume a very large number n (let say (9999)
now n^2 will be very very large too
and the value o(log n) will be very very less as compared to n^2 so the time complexity will not have a very huge effect if we do not consider o(log n) that's why we are taking time complexity as o(n^2) not O(n^2) + o(log n)
@@rawat_ji5183 thank you soo much now i understand why the complexity is n^2.
Hareeeee Krishnaaaaaaa
Mujhe CP quit karne ka Mann kar raha hai Didi 😞
Hey, when low and high will equals to y then that will be infinite loop , right ?
Pls try to make videos in English...as lot of ppl r from south
yes, from now I will be making in English :).
With the first approach
It's not passing all the test case
All test cases will have if you put in for loop till i
@@sankhajitpal1050 Thanks