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

Поділитися
Вставка
  • Опубліковано 15 чер 2023
  • 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.
  • Наука та технологія

КОМЕНТАРІ • 301

  • @ThourCS2
    @ThourCS2 10 місяців тому +404

    1. Top-k Largest Elements
    2. Sliding Window
    3. Backtracking
    4. Dynamic Programming
    5. DFS and BFS

  • @jojobabu5718
    @jojobabu5718 10 місяців тому +454

    We want a video on top 5 most asked data structures

  • @studytable2060
    @studytable2060 8 місяців тому +65

    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

  • @aufkeinsten7883
    @aufkeinsten7883 10 місяців тому +7

    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!

  • @iAPX432
    @iAPX432 5 місяців тому +2

    I like how you explain simply with a very calm voice things that might seems complex at first!
    Great work!

  • @alicivrilify
    @alicivrilify 10 місяців тому +12

    This is great work. Please continue giving info about interviews, so that I can train my students better.

  • @karanbenz
    @karanbenz 10 місяців тому +11

    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 🙏

  • @zedddoctor
    @zedddoctor 10 місяців тому +2

    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.

  • @kkcui
    @kkcui 10 місяців тому +59

    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  10 місяців тому +5

      Thanks Kexin! Love your videos 🫶

    • @ohazimihevanessa3972
      @ohazimihevanessa3972 10 місяців тому

      @@sahilandsarra Thanks for your videos, i'm learning python thanks to you, where can learn GoLang, datacamp isnt teaching this programming language

  • @CRBarchager
    @CRBarchager 10 місяців тому +1

    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.

  • @AdnanDev-su5no
    @AdnanDev-su5no 7 місяців тому +6

    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 4 місяці тому

      Hey, Have you landed a job yet? What is your primary language?

    • @AdarshGupta-hc3qv
      @AdarshGupta-hc3qv 2 місяці тому

      bro send me money too i have pay for my college fees ( small help will be appreciated)

  • @davit_code8929
    @davit_code8929 10 місяців тому +9

    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 6 місяців тому

      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

  • @raidenshogun978
    @raidenshogun978 10 місяців тому +5

    It would be awesome if you make a series explaining these algorithms

  • @manishv3992
    @manishv3992 10 місяців тому +7

    Bro what an animation, how did you learn this top notch editing bro ❤

  • @_Aditya_Kumar_Raj
    @_Aditya_Kumar_Raj 10 місяців тому

    i love your calmness while explaining

  • @divakarsaragadam8420
    @divakarsaragadam8420 10 місяців тому +5

    Thanks for sharing your knowledge with out any cost

    • @sahilandsarra
      @sahilandsarra  10 місяців тому +1

      Thanks for watching.

    • @abbylynn8872
      @abbylynn8872 10 місяців тому

      Right... I'm so grateful for the knowledge sharing 💕

  • @nassir2154
    @nassir2154 3 місяці тому +1

    🎯 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

  • @unity3dconcepts434
    @unity3dconcepts434 10 місяців тому +1

    You are calmer than the buddhist monks. Listening to you is nirvana... 😁🤓🤗 Thanks for sharing your experience 👍👍👍 love and respect

  • @MaximStarikov
    @MaximStarikov 10 місяців тому

    Thanks for the video!

  • @sunilvishwakarma3941
    @sunilvishwakarma3941 7 місяців тому +1

    You motivated me to learn DSA.

  • @paul_c15
    @paul_c15 10 місяців тому +3

    Please do a video about the top 5 data structures!

  • @bigtime9231
    @bigtime9231 5 місяців тому

    Would be great if u upload lectures on dynamic programming! Great content go ahead.

  • @ishaaq5506
    @ishaaq5506 7 місяців тому

    Yes please Top 5 Data structures.

  • @dankiy3679
    @dankiy3679 10 місяців тому +17

    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  10 місяців тому +5

      Thanks for sharing 👍

    • @moneymaker7307
      @moneymaker7307 10 місяців тому

      U can mention quick select but I won’t try to code it up in interviews

    • @anon1963
      @anon1963 9 місяців тому

      @@moneymaker7307 why?

  • @user-ln7ek5zn2j
    @user-ln7ek5zn2j 10 місяців тому +3

    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 10 місяців тому +3

      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

    • @Seeking_Solace
      @Seeking_Solace 4 місяці тому

      We can solve it in O(n) time using bucket sort.

  • @ash143aish
    @ash143aish 9 місяців тому

    Please make a video on top 5 data structure

  • @ratnadeepsaha7675
    @ratnadeepsaha7675 10 місяців тому

    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

  • @elavarasan289
    @elavarasan289 10 місяців тому +3

    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  10 місяців тому

      Thanks 🙏 👍

    • @rapianopenaldo1669
      @rapianopenaldo1669 10 місяців тому

      i think its his gay voice he got in iit delhi which makes him very calm

  • @RahulSharma-ht2xz
    @RahulSharma-ht2xz 10 місяців тому +1

    yes we want a video on top 5 data structures

  • @muneebzubair8443
    @muneebzubair8443 8 місяців тому +1

    Bonus Algorithms at the end of video:
    6. Topological Sort
    7. Dijkstra's Algorithm
    0. A*, Bellman Fords, Floyd Warshall

  • @Mohitsingh-bv1yp
    @Mohitsingh-bv1yp 10 місяців тому

    Please explain top 5 algorithms in detail
    And make more this type of video

  • @VikasNikhil
    @VikasNikhil 8 місяців тому

    awesome video, the way you are speaking I feel I am listening to an AI machine. Thanks :)

  • @wadigzonDiazwong
    @wadigzonDiazwong Місяць тому

    Thanks for sharing this. I think a better title would be "Top 5 Algorithm Patterns they asked me" other than that, great work!

  • @codedecks
    @codedecks 7 місяців тому

    Waiting for the top 5 system design concepts asked in Google interviews ❤

  • @karanyuvrajsingh4911
    @karanyuvrajsingh4911 10 місяців тому

    Amazing explanations!!

  • @hemanth_koll
    @hemanth_koll 10 місяців тому

    Requesting you to kindly start a DSA course/boot camp - it would be very much helpful - thank you

  • @alviahmed7388
    @alviahmed7388 10 місяців тому +6

    Definitely make a top data structures video sahil! Also love your videos

  • @elvisgarcia1822
    @elvisgarcia1822 10 місяців тому +1

    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 :)

  • @suvendudutta4688
    @suvendudutta4688 8 місяців тому

    Plz make a video on top 5 data structures

  • @madhav_0075
    @madhav_0075 10 місяців тому

    Really needed sir kindly teach

  • @anirudhmittal5381
    @anirudhmittal5381 6 місяців тому

    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.

  • @bhaskarkothala5169
    @bhaskarkothala5169 10 місяців тому +7

    Hey man why don't you start giving tutorials.I believe you can deliver them way better than many people

  • @studiesinformation436
    @studiesinformation436 10 місяців тому +3

    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❤❤❤

  • @Samandar-dev
    @Samandar-dev 10 місяців тому +2

    Sahil, thank you . Please do a video about the top 5 data structures!

  • @lakshyasaharan5348
    @lakshyasaharan5348 10 місяців тому

    The music sound at the end was perfectly placed.

  • @motivationimpact181
    @motivationimpact181 10 місяців тому +1

    I love your videos each time something new very interesting topics

  • @ganeshreddykomitireddy5128
    @ganeshreddykomitireddy5128 7 місяців тому

    Please make a video on the top 5 datastructures

  • @biniyamabera8356
    @biniyamabera8356 10 місяців тому

    yes, We want a video on top 5 most asked data structures

  • @jitendaranjan7501
    @jitendaranjan7501 10 місяців тому

    Love you bro I inspire you

  • @vinaygujjula8381
    @vinaygujjula8381 10 місяців тому

    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 ❤❤

  • @vedparkashgaba5478
    @vedparkashgaba5478 10 місяців тому +1

    Nice video content selection is also good

  • @erbenton07
    @erbenton07 7 місяців тому

    What is the practical application of these algorithms?

  • @jhors7777
    @jhors7777 8 місяців тому

    Thank you for posting this helpful and detailed video

  • @snipacer
    @snipacer 10 місяців тому

    Hi Sahil, I loved your videos❤. Your voice is so dense😊. May God bless you.

  • @smartbinit2
    @smartbinit2 5 місяців тому

    This guy speaks so politely it just doesn't feel he is speaking and he also must be saving a lot of energy 😂

  • @user-sh3xp8uh2s
    @user-sh3xp8uh2s 10 місяців тому

    Yes, please make it

  • @sangu3939
    @sangu3939 10 місяців тому +1

    Thanks sir make a video on Android app development from java what things we follow and learn for beginning

  • @pratyushkumarsahoo6117
    @pratyushkumarsahoo6117 10 місяців тому +1

    We want top 5 most asked data structures

  • @AyushKumar-pq4wi
    @AyushKumar-pq4wi 10 місяців тому +1

    can you please make a detailed video on most asked data structure Topics In an interviews ?

  • @avinashkumar3340
    @avinashkumar3340 7 місяців тому

    I was asked to implement an autocomplete feature using trie data structure 😅

  • @samratsaha447
    @samratsaha447 4 місяці тому

    top 5 DSA asked, we need a video on this topic

  • @dakuta
    @dakuta 2 місяці тому

    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.

  • @grebmann
    @grebmann 8 місяців тому +1

    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.

  • @andreborgesuhlrich631
    @andreborgesuhlrich631 10 місяців тому

    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.

  • @Terminal-learning-simlified
    @Terminal-learning-simlified 10 місяців тому

    top 5 most asked full lecture about ds and algorithms please

  • @robertk4079
    @robertk4079 10 місяців тому

    Kindly post videos explaining these 5 algorithms

  • @TricoliciSerghei
    @TricoliciSerghei 10 місяців тому +2

    Would love to see the some data structure videos.

  • @bommanahemanth4551
    @bommanahemanth4551 10 місяців тому

    Please do video on top 20 algorithms

  • @sekarrajagk8261
    @sekarrajagk8261 10 місяців тому

    top 5 most asked data structure is needed

  • @Vivekkumar-zc7mz
    @Vivekkumar-zc7mz 10 місяців тому +1

    I always watching ur videos and learned alot

  • @kan15hk
    @kan15hk 3 місяці тому

    Top k-frequent elements with heap is also N * log(N) time complexity.

  • @K9TX
    @K9TX 10 місяців тому +2

    big fan sir

  • @almousafir4041
    @almousafir4041 10 місяців тому +1

    Nice video 👍

  • @chinmayrath8494
    @chinmayrath8494 9 місяців тому

    Take my sub !!

  • @Raj-pi1pl
    @Raj-pi1pl 10 місяців тому

    please make 1 videos on all the algos

  • @etcode
    @etcode 8 місяців тому +1

    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? 😮

  • @soicooc3500
    @soicooc3500 14 днів тому

    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)

  • @sumana4773
    @sumana4773 10 місяців тому +1

    ❤ it's too good

  • @ogabektulayev595
    @ogabektulayev595 7 місяців тому

    He will become a legend of tech community soon. Keep it up man, you are doing a great job 🫡

  • @AdnanNazirAhmed
    @AdnanNazirAhmed 4 місяці тому

    You are inspirational.

  • @randimadevindi5541
    @randimadevindi5541 Місяць тому

    Do a video contains top 5 data structures. That may be helpful

  • @SachinPatel-xi9fn
    @SachinPatel-xi9fn 10 місяців тому

    Could you please make a video on the future of developer after 5 years from now ? As chatGPT and AI is evolving.

  • @nobody-s
    @nobody-s 10 місяців тому +1

    I like the way you speak!

  • @rahulrajparida8838
    @rahulrajparida8838 10 місяців тому +1

    Thankyou sir

  • @BangsarRia
    @BangsarRia 7 місяців тому

    "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.

    • @feroast1
      @feroast1 7 місяців тому

      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.

    • @Shazam999
      @Shazam999 3 місяці тому +1

      @@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
      @Shazam999 3 місяці тому

      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.

  • @larbesabdellah7079
    @larbesabdellah7079 10 місяців тому +1

    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

  • @rizwanullah3864
    @rizwanullah3864 5 місяців тому

    @PowerCouple, please make one video on calculating Time complexity

  • @31ankitnain41
    @31ankitnain41 10 місяців тому +1

    sir please make a detailed video on dsa as whole about topics most ques are asked

    • @sahilandsarra
      @sahilandsarra  10 місяців тому

      It’s already linked at the end of the video.

  • @m_yoda
    @m_yoda 10 місяців тому

    Sometimes it is hard to understand you because of your English, but thank you for the video overall.

  • @makyxyz3375
    @makyxyz3375 10 місяців тому

    Hi Power Couple, to crack coding interviews is needed to have a academic formation of data structures and algo? Thanks

  • @thellaidhinesh8646
    @thellaidhinesh8646 10 місяців тому

    Hey bro, Im finding it difficult to find the time complexity for back tracking sum. Can you please a video about that?

  • @tunisiasparx2105
    @tunisiasparx2105 7 місяців тому

    awsome

  • @sebastiantu6212
    @sebastiantu6212 5 місяців тому

    I never really understood backtracking until I realized that it should be called quit when there’s no point going on

  • @sanjeevak5135
    @sanjeevak5135 10 місяців тому

    Yss please make the video for data structure

  • @Arya20012
    @Arya20012 10 місяців тому +1

    Thank you bhaiya

  • @MattJarjoura
    @MattJarjoura 8 місяців тому

    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.

  • @shikhar7437
    @shikhar7437 9 місяців тому

    Make a video on TOP 5 MOST ASKED DATA STRUCTURES.

  • @piyushmourya3183
    @piyushmourya3183 9 місяців тому +1

    His calmness is scaring me

  • @divyanshrawat2859
    @divyanshrawat2859 10 місяців тому

    we need to 5 algorithms

  • @VivekSingh-wu9mx
    @VivekSingh-wu9mx 10 місяців тому +2

    abe bhai itni videos bna chuka hai abhi tak voice ki volume aur tuning shi nhi kr paya. But great content though.