I gave 127 interviews. Top 5 Algorithms they asked me.

  Рет қаралды 608,404

Sahil & Sarra

Sahil & Sarra

Жыл бұрын

1. How to learn Data Structures and Algorithms?
2. The best course to learn Data Structures and Algorithms in Java and Python
3. How to crack coding interview?
4. How to use Leetcode effectively?
I will answer all these questions in this video.
► Useful links:
1. Top k largest elements: www.geeksforgeeks.org/k-large...
2. Sliding window: leetcode.com/problems/longest...
3. Combination Sum Backtracking: replit.com/@replitshare2/Comb...
4. Combination Sum Dynamic Programming: replit.com/@replitshare2/Comb...
5. DFS and BFS: • 5.1 Graph Traversals -...
Disclosure: Resources above are all FREE in the US. However, If you pay for a Coursera or Udacity course using our link, we get paid a small amount.
► For more content like this, subscribe to our channel: / powercouple26
► Follow us on Linkedin:
/ gabag26
/ sarrabounouh
► Let's be FRIENDS! / power_couple26
► For business inquiries, reach us on: powercouplejourney@gmail.com
#datastructures #datastructuresandalgorithms #leetcode #codinginterview
DISCLAIMER: All opinions shared on this channel are our own and don't express views or opinions of our employers. We only use our experiences and public knowledge to make our content. NO CONFIDENTIAL INFORMATION of our employers is used or shared on this channel. This is not a Professional Coaching channel, it only highlights the public resources that have worked for our careers.

Пікірлер: 313
@ThourCS2
@ThourCS2 Жыл бұрын
1. Top-k Largest Elements 2. Sliding Window 3. Backtracking 4. Dynamic Programming 5. DFS and BFS
@s.k.6563
@s.k.6563 11 ай бұрын
Vice versa
@muneebzubair8443
@muneebzubair8443 10 ай бұрын
Bonus Algorithms at the end of video: 6. Topological Sort 7. Dijkstra's Algorithm
@alexeyprikhodko6990
@alexeyprikhodko6990 10 ай бұрын
@@muneebzubair8443 8. Tree
@sajithgunarathna3696
@sajithgunarathna3696 9 ай бұрын
Copied
@AbhinavRaj_P
@AbhinavRaj_P 7 ай бұрын
@@muneebzubair8443😅
@studytable2060
@studytable2060 10 ай бұрын
1. Top-k Largest Elements(from array) 2. Sliding Window(longest substring without repeating characters) 3. Backtracking(combination/target sum, word ladder, permutation, sudoku solver) 4. Dynamic Programming(combination/target sum) 5. DFS(implemented using stack(LIFO)) and BFS(implemented using queue(FIFO)) ex-Dijkstra's Algorithm, Topological sort
@iAPX432
@iAPX432 7 ай бұрын
I like how you explain simply with a very calm voice things that might seems complex at first! Great work!
@alicivrilify
@alicivrilify Жыл бұрын
This is great work. Please continue giving info about interviews, so that I can train my students better.
@jojobabu5718
@jojobabu5718 Жыл бұрын
We want a video on top 5 most asked data structures
@prabhatkumarraj9709
@prabhatkumarraj9709 Жыл бұрын
Yeess
@cinzoop5250
@cinzoop5250 Жыл бұрын
+1
@iamgroot2810
@iamgroot2810 Жыл бұрын
+1
@sahilandsarra
@sahilandsarra Жыл бұрын
Hi all! Thanks for the suggestion. Will post it this weekend 😊
@_JAGATHEESANV
@_JAGATHEESANV Жыл бұрын
@@sahilandsarra thank you so much
@aufkeinsten7883
@aufkeinsten7883 Жыл бұрын
Jesus christ you are an absolute beast at this, best educational content I've seen I think! Concise, informative, simple but not superficial.. Thank you so much!
@zedddoctor
@zedddoctor Жыл бұрын
Your videos are so helpful, I inevitably end up saving them in a playlist so I can refer to them later whenever I need guidance. Thank you so much.
@sahilandsarra
@sahilandsarra Жыл бұрын
Thanks 🙏
@karanbenz
@karanbenz Жыл бұрын
Sahil, amazing Video. Loved the way you explained the problem with an animation. Highly recommend you launching a course in DSA using Python with similar explanation 🙏
@CRBarchager
@CRBarchager Жыл бұрын
Very good explication. There are algorithms here I've never heard of or for that matter never had any use for in my developer career but it's nice to broading your knowledge of things. Thank you for sharing.
@kkcui
@kkcui Жыл бұрын
I like how you explain recursion - I always draw a stack and dive into each step but that's just cost a lot of time. And 127 interviews is just impressive! Keep up the good work power couple! 🙌💪
@sahilandsarra
@sahilandsarra Жыл бұрын
Thanks Kexin! Love your videos 🫶
@ohazimihevanessa3972
@ohazimihevanessa3972 Жыл бұрын
@@sahilandsarra Thanks for your videos, i'm learning python thanks to you, where can learn GoLang, datacamp isnt teaching this programming language
@raidenshogun978
@raidenshogun978 Жыл бұрын
It would be awesome if you make a series explaining these algorithms
@davit_code8929
@davit_code8929 Жыл бұрын
If you don't need to return the elements in order, Top k elements can be optimised even further with quickselect to Time complexity of O(n + k) => O(n) AND bringing down the space complexity to O(1) too. Quickselect has a worse time complexity of O(n^2), but picking the pivot randomly each time gives O(n). The chances of always picking a bad pivot that would make it O(n^2) with a random pivot is so small, that papers assume it never happens.
@tho_norlha
@tho_norlha 8 ай бұрын
Just a question: You can do one for loop to get the largest let -> n Another one to remove that won’t -> n Repeat it 2 times so we get too 3 elts ->O(5n) = O(n) Am I correct ? If it’s too 3 elts, but I see that a heap might be better if we want the top k elts and if K is very large
@richied90
@richied90 12 күн бұрын
Nice and simple explanations! Thanks for uploading this
@manishv3992
@manishv3992 Жыл бұрын
Bro what an animation, how did you learn this top notch editing bro ❤
@nassir2154
@nassir2154 5 ай бұрын
🎯 Key Takeaways for quick navigation: 00:00 📚 *Introduction to Common Algorithms in Coding Interviews* - Overview of frequently asked algorithms in tech company interviews. - Emphasis on the 80-20 rule in algorithm knowledge for interviews. 00:30 💡 *"Top k Elements" Algorithm* - Explanation of the "top k elements" algorithm and its application. - Use of heap data structure for efficiency in finding k largest elements. 01:52 🖥️ *"Sliding Window" Algorithm* - Introduction to the "Sliding Window" algorithm for various problems. - Example using Largest Substring without repeating characters. 03:17 🔙 *Backtracking Method* - Concept of backtracking explored with the Combination Sum problem. - Use of recursion in backtracking algorithms. 05:07 🧮 *Dynamic Programming Approach* - Differences between backtracking and dynamic programming. - Application of dynamic programming in solving the Combination Sum problem. 07:02 🌐 *Graph Traversal: BFS and DFS* - Explanation of Breadth First Search (BFS) and Depth First Search (DFS). - Comparison of BFS and DFS in graph traversal, and their respective data structures. Made with HARPA AI
@AdnanDev-su5no
@AdnanDev-su5no 9 ай бұрын
I was taught all these in university, but never told how, why or where they are used. I have started to use these in my personal projects after watching your video. Thanks a bunch for spreading this valuable knowledge. And of course I do plan to use this info for coding interviews in the future apart from my projects 😅
@paultvshow
@paultvshow 7 ай бұрын
Hey, Have you landed a job yet? What is your primary language?
@AdarshGupta-hc3qv
@AdarshGupta-hc3qv 4 ай бұрын
bro send me money too i have pay for my college fees ( small help will be appreciated)
@MaximStarikov
@MaximStarikov Жыл бұрын
Thanks for the video!
@_Aditya_Kumar_Raj
@_Aditya_Kumar_Raj Жыл бұрын
i love your calmness while explaining
@bigtime9231
@bigtime9231 7 ай бұрын
Would be great if u upload lectures on dynamic programming! Great content go ahead.
@paul_c15
@paul_c15 Жыл бұрын
Please do a video about the top 5 data structures!
@divakarsaragadam8420
@divakarsaragadam8420 Жыл бұрын
Thanks for sharing your knowledge with out any cost
@sahilandsarra
@sahilandsarra Жыл бұрын
Thanks for watching.
@abbylynn8872
@abbylynn8872 Жыл бұрын
Right... I'm so grateful for the knowledge sharing 💕
@ratnadeepsaha7675
@ratnadeepsaha7675 Жыл бұрын
Please make a video on most commonly used algorithms and data structures with use cases. Include not only 5 but also the other commonly used ones
@dankiy3679
@dankiy3679 Жыл бұрын
I would suggest using Quick Select to solve problems where you have to return top K elements, since it has O(n) average time complexity
@sahilandsarra
@sahilandsarra Жыл бұрын
Thanks for sharing 👍
@moneymaker7307
@moneymaker7307 Жыл бұрын
U can mention quick select but I won’t try to code it up in interviews
@anon1963
@anon1963 11 ай бұрын
@@moneymaker7307 why?
@dapygor9339
@dapygor9339 15 күн бұрын
​@@anon1963 it's kind of hard
@unity3dconcepts434
@unity3dconcepts434 Жыл бұрын
You are calmer than the buddhist monks. Listening to you is nirvana... 😁🤓🤗 Thanks for sharing your experience 👍👍👍 love and respect
@stith_pragya
@stith_pragya Ай бұрын
Thank You So Much for this wonderful video..............🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
@user-ln7ek5zn2j
@user-ln7ek5zn2j Жыл бұрын
For k largest/smallest elements we can do heapify which works in O(n) and then take k element in constant time. Second option is counting sort which works in O(n +k)
@JD797
@JD797 Жыл бұрын
Even with heapify in linear time, taking k elements is still klogk since when the top element is removed, the heap moves the last element to the top to replace it and sifts down, which is log k operation
@Omar_Al_Seddik
@Omar_Al_Seddik 6 ай бұрын
We can solve it in O(n) time using bucket sort.
@elavarasan289
@elavarasan289 Жыл бұрын
Whenever I am getting demotivated u just create a video and it makes me think dsa is easy. I dont know whether your calming voice or the way you explain. Thanks a lot .
@sahilandsarra
@sahilandsarra Жыл бұрын
Thanks 🙏 👍
@rapianopenaldo1669
@rapianopenaldo1669 Жыл бұрын
i think its his gay voice he got in iit delhi which makes him very calm
@studiesinformation436
@studiesinformation436 Жыл бұрын
Every of your video is Awesome please do a playlist on DSA I will be very thankful for considering of my comments Keep it up❤❤❤
@sahilandsarra
@sahilandsarra Жыл бұрын
👍❤️❤️
@Mohitsingh-bv1yp
@Mohitsingh-bv1yp Жыл бұрын
Please explain top 5 algorithms in detail And make more this type of video
@elvisgarcia1822
@elvisgarcia1822 Жыл бұрын
Wow, Nice explication even for someone who do not speak english I understand everything, Nice video editing everything was perfect, thanks for sharing your knowledge :)
@sahilandsarra
@sahilandsarra Жыл бұрын
Thanks 🙏
@anirudhmittal5381
@anirudhmittal5381 8 ай бұрын
Thank You for doing this. I subscribed to your channel as I love your videos. Can you recommend a best site that is good for learning and practicing these algorithms to pass most coding interview questions. Reply highly appreciated.
@wadigzonDiazwong
@wadigzonDiazwong 3 ай бұрын
Thanks for sharing this. I think a better title would be "Top 5 Algorithm Patterns they asked me" other than that, great work!
@lakshyasaharan5348
@lakshyasaharan5348 Жыл бұрын
The music sound at the end was perfectly placed.
@RahulSharma-ht2xz
@RahulSharma-ht2xz Жыл бұрын
yes we want a video on top 5 data structures
@andreborgesuhlrich631
@andreborgesuhlrich631 Жыл бұрын
What tool do you use to display the code in the video? I have a presentation to do and would like to use something similar.
@karanyuvrajsingh4911
@karanyuvrajsingh4911 Жыл бұрын
Amazing explanations!!
@sahilandsarra
@sahilandsarra Жыл бұрын
Thanks 🙏
@madhav_0075
@madhav_0075 Жыл бұрын
Really needed sir kindly teach
@hemanth_koll
@hemanth_koll Жыл бұрын
Requesting you to kindly start a DSA course/boot camp - it would be very much helpful - thank you
@Samandar-dev
@Samandar-dev Жыл бұрын
Sahil, thank you . Please do a video about the top 5 data structures!
@sahilandsarra
@sahilandsarra Жыл бұрын
🙏👍
@motivationimpact181
@motivationimpact181 Жыл бұрын
I love your videos each time something new very interesting topics
@sahilandsarra
@sahilandsarra Жыл бұрын
Thanks 🙏
@alviahmed7388
@alviahmed7388 Жыл бұрын
Definitely make a top data structures video sahil! Also love your videos
@sahilandsarra
@sahilandsarra Жыл бұрын
👍
@sangu3939
@sangu3939 Жыл бұрын
Thanks sir make a video on Android app development from java what things we follow and learn for beginning
@bhaskarkothala5169
@bhaskarkothala5169 Жыл бұрын
Hey man why don't you start giving tutorials.I believe you can deliver them way better than many people
@dibyanshudash399
@dibyanshudash399 Ай бұрын
Yes, pls make a video on Top 5 Data Structures
@snipacer
@snipacer Жыл бұрын
Hi Sahil, I loved your videos❤. Your voice is so dense😊. May God bless you.
@sahilandsarra
@sahilandsarra Жыл бұрын
Thanks ❤️
@vinaygujjula8381
@vinaygujjula8381 Жыл бұрын
We want video on data structures how to understand easily and what process we follow to remember easily. Try to make full length video on data structures.Thank you❤ always @power couple ❤❤
@biniyamabera8356
@biniyamabera8356 Жыл бұрын
yes, We want a video on top 5 most asked data structures
@AyushKumar-pq4wi
@AyushKumar-pq4wi Жыл бұрын
can you please make a detailed video on most asked data structure Topics In an interviews ?
@dakuta
@dakuta 5 ай бұрын
IIt's impressive to hear about your experience with 127 interviews and the algorithms they focused on. However, I'm curious about the circumstances that led to such a high number of interviews. Do you think there are specific factors or challenges that contributed to this? It would be really insightful to hear your thoughts on how to efficiently navigate the job market, especially for those who might find themselves in a similar situation.
@vedparkashgaba5478
@vedparkashgaba5478 Жыл бұрын
Nice video content selection is also good
@sahilandsarra
@sahilandsarra Жыл бұрын
Thanks ❤️
@TricoliciSerghei
@TricoliciSerghei Жыл бұрын
Would love to see the some data structure videos.
@sahilandsarra
@sahilandsarra Жыл бұрын
👍
@ishaaq5506
@ishaaq5506 10 ай бұрын
Yes please Top 5 Data structures.
@jitendaranjan7501
@jitendaranjan7501 Жыл бұрын
Love you bro I inspire you
@makyxyz3375
@makyxyz3375 Жыл бұрын
Hi Power Couple, to crack coding interviews is needed to have a academic formation of data structures and algo? Thanks
@sunilvishwakarma3941
@sunilvishwakarma3941 9 ай бұрын
You motivated me to learn DSA.
@pratyushkumarsahoo6117
@pratyushkumarsahoo6117 Жыл бұрын
We want top 5 most asked data structures
@Raj-pi1pl
@Raj-pi1pl Жыл бұрын
please make 1 videos on all the algos
@robertk4079
@robertk4079 Жыл бұрын
Kindly post videos explaining these 5 algorithms
@ganeshreddykomitireddy5128
@ganeshreddykomitireddy5128 9 ай бұрын
Please make a video on the top 5 datastructures
@user-sh3xp8uh2s
@user-sh3xp8uh2s Жыл бұрын
Yes, please make it
@Vivekkumar-zc7mz
@Vivekkumar-zc7mz Жыл бұрын
I always watching ur videos and learned alot
@sahilandsarra
@sahilandsarra Жыл бұрын
Thanks
@Terminal-learning-simlified
@Terminal-learning-simlified Жыл бұрын
top 5 most asked full lecture about ds and algorithms please
@SachinPatel-xi9fn
@SachinPatel-xi9fn Жыл бұрын
Could you please make a video on the future of developer after 5 years from now ? As chatGPT and AI is evolving.
@bommanahemanth4551
@bommanahemanth4551 Жыл бұрын
Please do video on top 20 algorithms
@suvendudutta4688
@suvendudutta4688 10 ай бұрын
Plz make a video on top 5 data structures
@codedecks
@codedecks 9 ай бұрын
Waiting for the top 5 system design concepts asked in Google interviews ❤
@ash143aish
@ash143aish 11 ай бұрын
Please make a video on top 5 data structure
@thellaidhinesh8646
@thellaidhinesh8646 Жыл бұрын
Hey bro, Im finding it difficult to find the time complexity for back tracking sum. Can you please a video about that?
@shubhammergu8158
@shubhammergu8158 2 ай бұрын
Must make video - Top 5 most asked Data Structures
@larbesabdellah7079
@larbesabdellah7079 Жыл бұрын
I'm a computer science student, I'm doing cloud computing now, I'm bad at networking and I hate it, but I'm in love with programming, please help me !!! Especially professional persons give me advices, roadmap anything to make me in the right way
@VikasNikhil
@VikasNikhil 10 ай бұрын
awesome video, the way you are speaking I feel I am listening to an AI machine. Thanks :)
@kan15hk
@kan15hk 5 ай бұрын
Top k-frequent elements with heap is also N * log(N) time complexity.
@samratsaha447
@samratsaha447 6 ай бұрын
top 5 DSA asked, we need a video on this topic
@31ankitnain41
@31ankitnain41 Жыл бұрын
sir please make a detailed video on dsa as whole about topics most ques are asked
@sahilandsarra
@sahilandsarra Жыл бұрын
It’s already linked at the end of the video.
@smartbinit2
@smartbinit2 7 ай бұрын
This guy speaks so politely it just doesn't feel he is speaking and he also must be saving a lot of energy 😂
@almousafir4041
@almousafir4041 Жыл бұрын
Nice video 👍
@sahilandsarra
@sahilandsarra Жыл бұрын
👍❤️
@Arya20012
@Arya20012 Жыл бұрын
Thank you bhaiya
@sahilandsarra
@sahilandsarra Жыл бұрын
Thanks 🙏
@sumana4773
@sumana4773 Жыл бұрын
❤ it's too good
@sahilandsarra
@sahilandsarra Жыл бұрын
❤️
@sebastiantu6212
@sebastiantu6212 7 ай бұрын
I never really understood backtracking until I realized that it should be called quit when there’s no point going on
@jhors7777
@jhors7777 10 ай бұрын
Thank you for posting this helpful and detailed video
@rizwanullah3864
@rizwanullah3864 7 ай бұрын
@PowerCouple, please make one video on calculating Time complexity
@randimadevindi5541
@randimadevindi5541 3 ай бұрын
Do a video contains top 5 data structures. That may be helpful
@AdnanNazirAhmed
@AdnanNazirAhmed 6 ай бұрын
You are inspirational.
@sekarrajagk8261
@sekarrajagk8261 Жыл бұрын
top 5 most asked data structure is needed
@shikhar7437
@shikhar7437 Жыл бұрын
Make a video on TOP 5 MOST ASKED DATA STRUCTURES.
@rahulrajparida8838
@rahulrajparida8838 Жыл бұрын
Thankyou sir
@sahilandsarra
@sahilandsarra Жыл бұрын
🙏
@grebmann
@grebmann 10 ай бұрын
127 interview to get a job ... that's what i call "Try hard". Well done man, never give up ;) Anyway nowadays, people just need to learn the algorithms and train on it for the interview. Everything that matter is the "Interview Skills". I saw a lot of indians going to the big tech companies by only mastering the art of interview but with poor business understanding and mediocre software engineering skills.
@mohanseditz
@mohanseditz Жыл бұрын
I like the way you speak!
@sahilandsarra
@sahilandsarra Жыл бұрын
Thanks 🙏
@m_yoda
@m_yoda Жыл бұрын
Sometimes it is hard to understand you because of your English, but thank you for the video overall.
@overclockedlife7550
@overclockedlife7550 Жыл бұрын
How good do we need to know algorithms for front-end interviews?
@chinmayrath8494
@chinmayrath8494 11 ай бұрын
Take my sub !!
@sahilandsarra
@sahilandsarra 11 ай бұрын
Thank you, sir
@muneebzubair8443
@muneebzubair8443 10 ай бұрын
Bonus Algorithms at the end of video: 6. Topological Sort 7. Dijkstra's Algorithm 0. A*, Bellman Fords, Floyd Warshall
@psy-code6635
@psy-code6635 Жыл бұрын
I recently completed my mern stack course whenever I tried to build any website by my one I get stucked at start how can I improve ? Please
@DigvijaySingh-se2ll
@DigvijaySingh-se2ll Жыл бұрын
please make a video on flow state and how to get into it
@sahilandsarra
@sahilandsarra Жыл бұрын
I have already made it.
@K9TX
@K9TX Жыл бұрын
big fan sir
@sahilandsarra
@sahilandsarra Жыл бұрын
Thanks 🙏
@muditjaiswal
@muditjaiswal Жыл бұрын
For the "Top k elements" for your solution the complexity is actually O(nlogn), since in worst case scenario k tends to n.
@aliiucer
@aliiucer Жыл бұрын
no it can never exceed nlogk, assume k==1 so there is no way to make it nlogn
@muditjaiswal
@muditjaiswal 11 ай бұрын
@@aliiucer you are considering the best case scenario, mostly folks talk about worst case complexity & average case complexity when talking about an algorithm.
@aliiucer
@aliiucer 11 ай бұрын
@@muditjaiswal actually k is a different variable than n so nlogk is a better choice, worst case is a different thing
@VivekSingh-wu9mx
@VivekSingh-wu9mx Жыл бұрын
abe bhai itni videos bna chuka hai abhi tak voice ki volume aur tuning shi nhi kr paya. But great content though.
@sanjeevak5135
@sanjeevak5135 Жыл бұрын
Yss please make the video for data structure
@tgayush1424
@tgayush1424 Жыл бұрын
Subscribed
@beinghappy9223
@beinghappy9223 Жыл бұрын
Backtracking , DP , DFS & BFS
Google Coding Interview With A Facebook Software Engineer
49:59
Clément Mihailescu
Рет қаралды 924 М.
Top 6 Coding Interview Concepts (Data Structures & Algorithms)
10:51
🌊Насколько Глубокий Океан ? #shorts
00:42
ОСКАР ИСПОРТИЛ ДЖОНИ ЖИЗНЬ 😢 @lenta_com
01:01
Вечный ДВИГАТЕЛЬ!⚙️ #shorts
00:27
Гараж 54
Рет қаралды 11 МЛН
Haha😂 Power💪 #trending #funny #viral #shorts
00:18
Reaction Station TV
Рет қаралды 14 МЛН
Top 5 Data Structures they asked me in 127 interviews
8:01
Sahil & Sarra
Рет қаралды 108 М.
I Solved 1583 Leetcode Questions  Here's What I Learned
20:37
ThePrimeTime
Рет қаралды 544 М.
3 Types of Algorithms Every Programmer Needs to Know
13:12
ForrestKnight
Рет қаралды 454 М.
My Brain after 569 Leetcode Problems
7:50
NeetCode
Рет қаралды 2,4 МЛН
You only need 150 LeetCode questions.
5:32
Alex Nguyen
Рет қаралды 3,1 М.
Top 7 Data Structures for Interviews Explained SIMPLY
13:02
Codebagel
Рет қаралды 130 М.
How I mastered Data Structures and Algorithms
7:25
Sahil & Sarra
Рет қаралды 1,3 МЛН
Google Coding Interview With A High School Student
57:24
Clément Mihailescu
Рет қаралды 4 МЛН
Mastering Dynamic Programming - How to solve any interview problem (Part 1)
19:41
Software Engineering Job Interview - Full Mock Interview
1:14:29
freeCodeCamp.org
Рет қаралды 1,3 МЛН
Secret Wireless charger 😱 #shorts
0:28
Mr DegrEE
Рет қаралды 2,2 МЛН
CY Superb Earphone 👌 For Smartphone Handset
0:42
Tech Official
Рет қаралды 827 М.