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

2023 ж. 15 Мау.
571 122 Рет қаралды

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.

Пікірлер
  • 1. Top-k Largest Elements 2. Sliding Window 3. Backtracking 4. Dynamic Programming 5. DFS and BFS

    @ThourCS2@ThourCS210 ай бұрын
    • Vice versa

      @s.k.6563@s.k.65639 ай бұрын
    • Bonus Algorithms at the end of video: 6. Topological Sort 7. Dijkstra's Algorithm

      @muneebzubair8443@muneebzubair84438 ай бұрын
    • @@muneebzubair8443 8. Tree

      @alexeyprikhodko6990@alexeyprikhodko69908 ай бұрын
    • Copied

      @sajithgunarathna3696@sajithgunarathna36968 ай бұрын
    • @@muneebzubair8443😅

      @AbhinavRaj_P@AbhinavRaj_P5 ай бұрын
  • We want a video on top 5 most asked data structures

    @jojobabu5718@jojobabu571810 ай бұрын
    • Yeess

      @prabhatkumarraj9709@prabhatkumarraj970910 ай бұрын
    • +1

      @cinzoop5250@cinzoop525010 ай бұрын
    • +1

      @iamgroot2810@iamgroot281010 ай бұрын
    • Hi all! Thanks for the suggestion. Will post it this weekend 😊

      @sahilandsarra@sahilandsarra10 ай бұрын
    • @@sahilandsarra thank you so much

      @_JAGATHEESANV@_JAGATHEESANV10 ай бұрын
  • 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

    @studytable2060@studytable20609 ай бұрын
  • 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!

    @aufkeinsten7883@aufkeinsten788310 ай бұрын
  • I like how you explain simply with a very calm voice things that might seems complex at first! Great work!

    @iAPX432@iAPX4325 ай бұрын
  • This is great work. Please continue giving info about interviews, so that I can train my students better.

    @alicivrilify@alicivrilify10 ай бұрын
  • 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 🙏

    @karanbenz@karanbenz10 ай бұрын
  • 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.

    @zedddoctor@zedddoctor10 ай бұрын
    • Thanks 🙏

      @sahilandsarra@sahilandsarra10 ай бұрын
  • 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! 🙌💪

    @kkcui@kkcui10 ай бұрын
    • Thanks Kexin! Love your videos 🫶

      @sahilandsarra@sahilandsarra10 ай бұрын
    • @@sahilandsarra Thanks for your videos, i'm learning python thanks to you, where can learn GoLang, datacamp isnt teaching this programming language

      @ohazimihevanessa3972@ohazimihevanessa397210 ай бұрын
  • 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.

    @davit_code8929@davit_code892910 ай бұрын
    • 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

      @tho_norlha@tho_norlha7 ай бұрын
  • 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.

    @CRBarchager@CRBarchager10 ай бұрын
  • 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 😅

    @AdnanDev-su5no@AdnanDev-su5no7 ай бұрын
    • Hey, Have you landed a job yet? What is your primary language?

      @paultvshow@paultvshow5 ай бұрын
    • bro send me money too i have pay for my college fees ( small help will be appreciated)

      @AdarshGupta-hc3qv@AdarshGupta-hc3qv2 ай бұрын
  • It would be awesome if you make a series explaining these algorithms

    @raidenshogun978@raidenshogun97810 ай бұрын
  • Thanks for sharing your knowledge with out any cost

    @divakarsaragadam8420@divakarsaragadam842010 ай бұрын
    • Thanks for watching.

      @sahilandsarra@sahilandsarra10 ай бұрын
    • Right... I'm so grateful for the knowledge sharing 💕

      @abbylynn8872@abbylynn887210 ай бұрын
  • Bro what an animation, how did you learn this top notch editing bro ❤

    @manishv3992@manishv399210 ай бұрын
  • 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

    @dankiy3679@dankiy367910 ай бұрын
    • Thanks for sharing 👍

      @sahilandsarra@sahilandsarra10 ай бұрын
    • U can mention quick select but I won’t try to code it up in interviews

      @moneymaker7307@moneymaker730710 ай бұрын
    • @@moneymaker7307 why?

      @anon1963@anon196310 ай бұрын
  • 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)

    @user-ln7ek5zn2j@user-ln7ek5zn2j10 ай бұрын
    • 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

      @JD797@JD79710 ай бұрын
    • We can solve it in O(n) time using bucket sort.

      @Seeking_Solace@Seeking_Solace4 ай бұрын
  • Please do a video about the top 5 data structures!

    @paul_c15@paul_c1510 ай бұрын
  • Would be great if u upload lectures on dynamic programming! Great content go ahead.

    @bigtime9231@bigtime92315 ай бұрын
  • You are calmer than the buddhist monks. Listening to you is nirvana... 😁🤓🤗 Thanks for sharing your experience 👍👍👍 love and respect

    @unity3dconcepts434@unity3dconcepts43410 ай бұрын
  • 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 .

    @elavarasan289@elavarasan28910 ай бұрын
    • Thanks 🙏 👍

      @sahilandsarra@sahilandsarra10 ай бұрын
    • i think its his gay voice he got in iit delhi which makes him very calm

      @rapianopenaldo1669@rapianopenaldo166910 ай бұрын
  • Bonus Algorithms at the end of video: 6. Topological Sort 7. Dijkstra's Algorithm 0. A*, Bellman Fords, Floyd Warshall

    @muneebzubair8443@muneebzubair84438 ай бұрын
  • 🎯 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

    @nassir2154@nassir21543 ай бұрын
  • i love your calmness while explaining

    @_Aditya_Kumar_Raj@_Aditya_Kumar_Raj10 ай бұрын
  • 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

    @ratnadeepsaha7675@ratnadeepsaha767510 ай бұрын
  • 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.

    @anirudhmittal5381@anirudhmittal53816 ай бұрын
  • You motivated me to learn DSA.

    @sunilvishwakarma3941@sunilvishwakarma39417 ай бұрын
  • Please explain top 5 algorithms in detail And make more this type of video

    @Mohitsingh-bv1yp@Mohitsingh-bv1yp10 ай бұрын
  • Yes please Top 5 Data structures.

    @ishaaq5506@ishaaq55068 ай бұрын
  • 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.

    @andreborgesuhlrich631@andreborgesuhlrich63110 ай бұрын
  • 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❤❤❤

    @studiesinformation436@studiesinformation43610 ай бұрын
    • 👍❤️❤️

      @sahilandsarra@sahilandsarra10 ай бұрын
  • yes we want a video on top 5 data structures

    @RahulSharma-ht2xz@RahulSharma-ht2xz10 ай бұрын
  • 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 :)

    @elvisgarcia1822@elvisgarcia182210 ай бұрын
    • Thanks 🙏

      @sahilandsarra@sahilandsarra10 ай бұрын
  • Please make a video on top 5 data structure

    @ash143aish@ash143aish9 ай бұрын
  • Sahil, thank you . Please do a video about the top 5 data structures!

    @Samandar-dev@Samandar-dev10 ай бұрын
    • 🙏👍

      @sahilandsarra@sahilandsarra10 ай бұрын
  • What is the practical application of these algorithms?

    @erbenton07@erbenton078 ай бұрын
  • Requesting you to kindly start a DSA course/boot camp - it would be very much helpful - thank you

    @hemanth_koll@hemanth_koll10 ай бұрын
  • Thanks for the video!

    @MaximStarikov@MaximStarikov10 ай бұрын
  • Thanks for sharing this. I think a better title would be "Top 5 Algorithm Patterns they asked me" other than that, great work!

    @wadigzonDiazwong@wadigzonDiazwongАй бұрын
  • Hi Power Couple, to crack coding interviews is needed to have a academic formation of data structures and algo? Thanks

    @makyxyz3375@makyxyz337510 ай бұрын
  • Waiting for the top 5 system design concepts asked in Google interviews ❤

    @codedecks@codedecks7 ай бұрын
  • Hey man why don't you start giving tutorials.I believe you can deliver them way better than many people

    @bhaskarkothala5169@bhaskarkothala516910 ай бұрын
  • Definitely make a top data structures video sahil! Also love your videos

    @alviahmed7388@alviahmed738810 ай бұрын
    • 👍

      @sahilandsarra@sahilandsarra10 ай бұрын
  • can you please make a detailed video on most asked data structure Topics In an interviews ?

    @AyushKumar-pq4wi@AyushKumar-pq4wi10 ай бұрын
  • Plz make a video on top 5 data structures

    @suvendudutta4688@suvendudutta46888 ай бұрын
  • 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 ❤❤

    @vinaygujjula8381@vinaygujjula838110 ай бұрын
  • Please make a video on the top 5 datastructures

    @ganeshreddykomitireddy5128@ganeshreddykomitireddy51287 ай бұрын
  • 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.

    @grebmann@grebmann8 ай бұрын
  • Hey bro, Im finding it difficult to find the time complexity for back tracking sum. Can you please a video about that?

    @thellaidhinesh8646@thellaidhinesh864610 ай бұрын
  • Thanks sir make a video on Android app development from java what things we follow and learn for beginning

    @sangu3939@sangu393910 ай бұрын
  • The music sound at the end was perfectly placed.

    @lakshyasaharan5348@lakshyasaharan534810 ай бұрын
  • 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.

    @dakuta@dakuta3 ай бұрын
  • I love your videos each time something new very interesting topics

    @motivationimpact181@motivationimpact18110 ай бұрын
    • Thanks 🙏

      @sahilandsarra@sahilandsarra10 ай бұрын
  • awesome video, the way you are speaking I feel I am listening to an AI machine. Thanks :)

    @VikasNikhil@VikasNikhil9 ай бұрын
  • yes, We want a video on top 5 most asked data structures

    @biniyamabera8356@biniyamabera835610 ай бұрын
  • Thank you for posting this helpful and detailed video

    @jhors7777@jhors77778 ай бұрын
  • Hi Sahil, I loved your videos❤. Your voice is so dense😊. May God bless you.

    @snipacer@snipacer10 ай бұрын
    • Thanks ❤️

      @sahilandsarra@sahilandsarra10 ай бұрын
  • Bro if there is no job on the portal how to apply ? I mean i have seen people still getting a job

    @aniketbhura6131@aniketbhura61318 ай бұрын
  • Amazing explanations!!

    @karanyuvrajsingh4911@karanyuvrajsingh491110 ай бұрын
    • Thanks 🙏

      @sahilandsarra@sahilandsarra10 ай бұрын
  • top 5 DSA asked, we need a video on this topic

    @samratsaha447@samratsaha4474 ай бұрын
  • I was asked to implement an autocomplete feature using trie data structure 😅

    @avinashkumar3340@avinashkumar33407 ай бұрын
  • Nice video content selection is also good

    @vedparkashgaba5478@vedparkashgaba547810 ай бұрын
    • Thanks ❤️

      @sahilandsarra@sahilandsarra10 ай бұрын
  • What company is asking you dynamic programming questions? Those are really hard to answer fast in a 45 min interview and teams and companies I've interviewed do not like asking them.

    @MattJarjoura@MattJarjoura8 ай бұрын
  • Top k-frequent elements with heap is also N * log(N) time complexity.

    @kan15hk@kan15hk3 ай бұрын
  • Really needed sir kindly teach

    @madhav_0075@madhav_007510 ай бұрын
  • Would love to see the some data structure videos.

    @TricoliciSerghei@TricoliciSerghei10 ай бұрын
    • 👍

      @sahilandsarra@sahilandsarra10 ай бұрын
  • Sir can you please tell me the proper guild line to start programming journey For Fe students

    @manojsharma-st1sy@manojsharma-st1sy2 күн бұрын
  • top 5 most asked full lecture about ds and algorithms please

    @Terminal-learning-simlified@Terminal-learning-simlified10 ай бұрын
  • Please do video on top 20 algorithms

    @bommanahemanth4551@bommanahemanth455110 ай бұрын
  • How good do we need to know algorithms for front-end interviews?

    @overclockedlife7550@overclockedlife755010 ай бұрын
  • 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

    @larbesabdellah7079@larbesabdellah707910 ай бұрын
  • How long in average should take for a person to master all of these algorithms? As many things the answer is always it depends, but I would like to you from you who is reading this comment, how long did it take to you to master these algorithms? 😮

    @etcode@etcode8 ай бұрын
  • This guy speaks so politely it just doesn't feel he is speaking and he also must be saving a lot of energy 😂

    @smartbinit2@smartbinit25 ай бұрын
  • Could you please make a video on the future of developer after 5 years from now ? As chatGPT and AI is evolving.

    @SachinPatel-xi9fn@SachinPatel-xi9fn10 ай бұрын
  • Yes, please make it

    @user-sh3xp8uh2s@user-sh3xp8uh2s10 ай бұрын
  • sir please make a detailed video on dsa as whole about topics most ques are asked

    @31ankitnain41@31ankitnain4110 ай бұрын
    • It’s already linked at the end of the video.

      @sahilandsarra@sahilandsarra10 ай бұрын
  • Love you bro I inspire you

    @jitendaranjan7501@jitendaranjan750110 ай бұрын
  • Do a video contains top 5 data structures. That may be helpful

    @randimadevindi5541@randimadevindi5541Ай бұрын
  • Kindly post videos explaining these 5 algorithms

    @robertk4079@robertk407910 ай бұрын
  • 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

    @psy-code6635@psy-code663510 ай бұрын
  • We want top 5 most asked data structures

    @pratyushkumarsahoo6117@pratyushkumarsahoo611710 ай бұрын
  • top 5 most asked data structure is needed

    @sekarrajagk8261@sekarrajagk826110 ай бұрын
  • abe bhai itni videos bna chuka hai abhi tak voice ki volume aur tuning shi nhi kr paya. But great content though.

    @VivekSingh-wu9mx@VivekSingh-wu9mx10 ай бұрын
  • please make 1 videos on all the algos

    @Raj-pi1pl@Raj-pi1pl10 ай бұрын
  • "Algorithms + Data Structures = Programs" was a 1976 book by Wirth, the designer of the Pascal programming language. Algorithms were all the rage in computing 50 years ago. Train yards and queuing in the 1960's, sorting, traversal and scheduling in the 1970's for Operations Research, an entire field that shortly disappeared. Then the focus turned to symbolic processing and other problems because algorithms were largely solved and available by calling libraries. While worthy of study for students, algorithms as questions in interviews for professional jobs shows a complete misunderstanding of solving real world problems and what a healthy code base should look like.

    @BangsarRia@BangsarRia8 ай бұрын
    • I'm always surprised when an interviewer doesn't follow with questions on how I'd implement in production code since, as you point out, most langauges have optimized solutions for us to leverage. However... DS-Algo challenges are the best way to determine candidate understanding of the computer science behind implementation choices. It's the best way to differentiate real coders from script-kiddies.

      @feroast1@feroast17 ай бұрын
    • @@feroast1My first developer question is always "has any of your code made into a production environment?" Most people actually answer no. I have no idea what people do all day.

      @Shazam999@Shazam9993 ай бұрын
    • Pretty much. No one is writing algorithms by hand. That would be a colossal waste of time. Guess it sorta explains why FAANG employ so many people though.

      @Shazam999@Shazam9993 ай бұрын
  • Man, how your resume gets selected in these companies. I am not getting a single interview 😢

    @sandeepnarwal8782@sandeepnarwal87828 ай бұрын
  • Hello do you do a personal coaching call or is there some way I can connect with you …..I am really lost in this journey and needed some help Thanks

    @rahulbhagwat2182@rahulbhagwat218210 ай бұрын
  • @PowerCouple, please make one video on calculating Time complexity

    @rizwanullah3864@rizwanullah38645 ай бұрын
  • Hello sir i need to change from hardware to software i find cloud computing little easy to get in to as a beginner can you assist me if there is any institute which can give me more support for these courses .

    @shaiknadeem9060@shaiknadeem906010 ай бұрын
  • Yss please make the video for data structure

    @sanjeevak5135@sanjeevak513510 ай бұрын
  • Must make video - Top 5 most asked Data Structures

    @shubhammergu8158@shubhammergu81588 күн бұрын
  • please make a video on flow state and how to get into it

    @DigvijaySingh-se2ll@DigvijaySingh-se2ll10 ай бұрын
    • I have already made it.

      @sahilandsarra@sahilandsarra10 ай бұрын
  • 6 months back i watched this video i don't know any of them and i was like how will i do them, today i know all of them and i can say i have mastered all of them except the dp (hehe)

    @ritik6095@ritik60953 ай бұрын
  • He will become a legend of tech community soon. Keep it up man, you are doing a great job 🫡

    @ogabektulayev595@ogabektulayev5957 ай бұрын
  • Sometimes it is hard to understand you because of your English, but thank you for the video overall.

    @m_yoda@m_yoda10 ай бұрын
  • 1. Top-k Largest Elements ( 0:46 - 1:00) 2. Sliding Window (1:01 - 3:30) 3. Backtracking ( 3:30 - 5:03) 4. Dynamic Programming ( 5:06 - 7:00) 5. DFS and BFS ( 7:02 - 7:54)

    @soicooc3500@soicooc350023 күн бұрын
  • It okay that you have selected for 127 interviews but can you please explain what you did in your resume to shortlist for those interviews.

    @yughendermeda6231@yughendermeda6231Ай бұрын
  • I always watching ur videos and learned alot

    @Vivekkumar-zc7mz@Vivekkumar-zc7mz10 ай бұрын
    • Thanks

      @sahilandsarra@sahilandsarra10 ай бұрын
  • For the "Top k elements" for your solution the complexity is actually O(nlogn), since in worst case scenario k tends to n.

    @muditjaiswal@muditjaiswal10 ай бұрын
    • no it can never exceed nlogk, assume k==1 so there is no way to make it nlogn

      @aliiucer@aliiucer10 ай бұрын
    • @@aliiucer you are considering the best case scenario, mostly folks talk about worst case complexity & average case complexity when talking about an algorithm.

      @muditjaiswal@muditjaiswal9 ай бұрын
    • @@muditjaiswal actually k is a different variable than n so nlogk is a better choice, worst case is a different thing

      @aliiucer@aliiucer9 ай бұрын
  • You are inspirational.

    @AdnanNazirAhmed@AdnanNazirAhmed5 ай бұрын
KZhead