8 patterns to solve 80% Leetcode problems

Поделиться
HTML-код
  • Опубликовано: 27 сен 2024
  • Try my free email crash course to crush technical interviews:
    Interview Master (now called InstaByte) - instabyte.io/
    ► Check out InstaJob: instajob.io/
    ► For more content like this, subscribe to our channel: / @sahilandsarra
    ► Follow us on Linkedin:
    / gabag26
    / sarrabounouh
    ► Let's be FRIENDS! / sahilandsarra

Комментарии • 180

  • @sahilandsarra
    @sahilandsarra  4 месяца назад +28

    Try my free email crash course to crush technical interviews:
    Interview Master (now called InstaByte) - instabyte.io/

    • @TheViral_fyp
      @TheViral_fyp 4 месяца назад +3

      Brother you doing great job 👍 ... But can u suggest me best book fundamental of DSA stuffs in java

    • @vivekcreation1904
      @vivekcreation1904 2 месяца назад

      The link is not working....

  • @congdatt
    @congdatt 4 месяца назад +469

    1. 2 pointer: 6:18
    2. Binary Tree BFS: 5:26
    3. Topological Sort: 4:33
    4. Binary Tree DFS: 3:39
    5. Top K Elements: 2:45
    6. Modified Binary Search: 1:35
    7. Subset: 1:04
    8. Sliding window: 0:17

  • @TeenyPort
    @TeenyPort 4 месяца назад +147

    Wow this video just made me realize A.) how much I forgot since I graduated, and B.) how much I haven’t needed to remember any of this so far in my professional developer career

    • @makima7457
      @makima7457 3 месяца назад +4

      so you mean these doesn't apply to your working experience. I am a student and I saw some competition problems like these and couldn't solve some. Then I thought that what will I do when I got a job?

    • @sidtalks2885
      @sidtalks2885 3 месяца назад

      @@makima7457 Believe me , you won't need any of these

    • @hen56349
      @hen56349 3 месяца назад

      @@makima7457 no, your job doesn't require this. However, it just improves your understanding of coding overall. If you are very good at leetcode, then employers can be confident in you. It shows employers that you have the discipline t to learn any skills required for a job.

    • @rafiashan8389
      @rafiashan8389 2 месяца назад +9

      @@makima7457 These kind of problems improve our problem solving abilities. That's why we learn / practice these pattern. In professional career, there not many situations where you need to use these patterns as there are already templates given. We just need to know how to use them accordingly.

    • @Bladermishal10
      @Bladermishal10 2 месяца назад

      ​@@rafiashan8389exactly but then when you wanna change job this is the kind of questions they ask in interviews, hence why I am here xD

  • @lakshmi8347
    @lakshmi8347 4 месяца назад +53

    This video is mind-blowing !!!
    Sir, Why don't you start a series on each pattern???
    It would be useful for everyone even though it is paid 🙏

    • @avinashkumar3116
      @avinashkumar3116 2 месяца назад

      Striver has already made series on each pattern with problems.
      Check it out on his channel #takeUforward, course name - Strivers A2Z DSA Course.
      He is the best.

  • @austecon6818
    @austecon6818 21 день назад +1

    I am still under 200 problems solved but I think I'm already qualified enough to say that this video is exactly the advice I would give too. The 80/20 rule... that 8 patterns will help you solve about 70% of mediums with the caveat that you DEEPLY understand the patterns and all the possible subtle variations. The other 30% are either different algorithms, tricks / math knowledge, greedy algorithms or DP problems... but most DP problems can be solved well enough with DFS + top-down memoisation.

  • @the-real-dr2050
    @the-real-dr2050 3 месяца назад +7

    Several great easy takeaways from this video and I’ve only watched it once. I’ll implement bisect left and right in swift now lol. Love it, thanks

  • @BrownStain_Silver
    @BrownStain_Silver 3 месяца назад +3

    I just discovered your channel after 4 months in a basic Python and intro to data science. During the course, I've written a few programs to automate tasks at work. I'm deciding where to go next and the most efficient way to get there. This channel is awesome! It has put so much into the right context to make the next decision.

  • @pawelsubko7277
    @pawelsubko7277 4 месяца назад +8

    More like 40%, to solve another 50% to be at the desired 90% you need only 35 more patterns.

    • @PabitraPadhy
      @PabitraPadhy 2 месяца назад

      what are those patterns and where to know them from?

  • @Shhhh-ni5jw
    @Shhhh-ni5jw 4 месяца назад +15

    I practices a lot of leetcode but my brain feels frozen right now and I cannot write any code even if I know the approaxh

  • @MrTubeyoucomment
    @MrTubeyoucomment 4 месяца назад +7

    As someone commented earlier - Bro talks in lowercase 🤣🤣🤣

  • @J4RMAMS
    @J4RMAMS 3 месяца назад +1

    I love you Sahil!!! Your journey inspired me to apply for a masters in computer science at Northeastern University!!!

  • @SaitejaE
    @SaitejaE 4 месяца назад +4

    Thanks for useful content!!

  • @neerajsinghbisht4030
    @neerajsinghbisht4030 4 месяца назад +4

    People from India 🎉

  • @thanhn2001
    @thanhn2001 29 дней назад

    Thank you such a great video that doesn't take 1 hour.

  • @srinivaschaligeri5760
    @srinivaschaligeri5760 4 месяца назад +2

    I am always looking for your new videos ❤

  • @045sunilkumar2
    @045sunilkumar2 4 месяца назад +2

    Please tell us about how to start leetcode for beginners

  • @chandup832
    @chandup832 2 месяца назад

    can you share list of problems in each pattern to practice? That would be very helpful, Thanks

  • @md_pedia1
    @md_pedia1 4 месяца назад +2

    That was really insightful ❤

  • @CodingWorldHere
    @CodingWorldHere 4 месяца назад +3

    Hard to digest in 8 minutes make detailed video.

  • @nadim379
    @nadim379 Месяц назад

    8. 0:16 Sliding Window Pattern
    7. 1:02 Subset Pattern
    6. 1:34 Modified Binary Search Pattern
    5. 2:45 Top k Elements Pattern
    4. 3:40 Binary Tree DFS Pattern
    3. 3:34 Topological Sort Pattern
    2. 5:25 Binary Tree BFS Pattern
    1. 6:18 Two Pointer Pattern

  • @SenthilkumarDeivasigamani
    @SenthilkumarDeivasigamani 4 месяца назад +1

    Thank you Sahil ❤

  • @funnycartoons707
    @funnycartoons707 4 месяца назад +3

    Love from IIT Delhi jwala hostel

  • @syedsaad4160
    @syedsaad4160 4 месяца назад +1

    Hashmap is pretty important too

  • @shanthim2573
    @shanthim2573 4 месяца назад +1

    Good effort bro

  • @mdyusufansari8897
    @mdyusufansari8897 4 месяца назад +5

    please make complete courses on devops, cloud computing.

    • @Simple_OG
      @Simple_OG 4 месяца назад +2

      Stop watching courses do something with yourself

    • @carl.bergmann
      @carl.bergmann 4 месяца назад

      @@Simple_OG I disagree, doing something yourself if good for reaching "depth" like a path in a DFS. Doing a course/reading a book is like a BFS in a given domain. It gives you the overview and wires the concepts together. So, you need both.

  • @SridTech
    @SridTech 4 месяца назад +2

    I subscribed to the interviewmaster mailing list. But no mail is delivered.

  • @BhoomikaD-r4l
    @BhoomikaD-r4l 17 дней назад

    Me after listening to him: may be bro is very serious person in life
    Me after seeing thumbnail: may be not 🤔

  • @md.nahidulalamchowdhury9568
    @md.nahidulalamchowdhury9568 Месяц назад

    Thanks a lot.

  • @pvibe-re3rt
    @pvibe-re3rt 2 месяца назад

    Greater explanation

  • @MADA_QWE
    @MADA_QWE 4 месяца назад +1

    I am taking CS50, Introduction to Programming with Python. Sometimes, when I try to solve problems, I can't figure them out. I might understand the logic, but struggle with implementing it. After attempting to solve the problem myself, I often have to look at the solution. When I do, I understand it. Does this mean I'm a bad programmer, or that programming isn't for me?

    • @youtubeuserwhowatchesyoutube
      @youtubeuserwhowatchesyoutube 4 месяца назад

      same bro same....i feel like iam working so hard for nothing🥲

    • @anihadagali4725
      @anihadagali4725 4 месяца назад +2

      It's always Ok to look at the solutions. But Make sure you understand the solution. But do revisit the problem the try solving it again, this time maybe chose a different language (any lang works, it's good to know more languages).

  • @Lalalala22537
    @Lalalala22537 4 месяца назад +1

    Are you a front-end / back-end developer or something else?

  • @anilhanumantharao9144
    @anilhanumantharao9144 4 месяца назад

    Thank you❣

  • @nikitarao9617
    @nikitarao9617 19 дней назад

    Which is the best course to learn DSA and their time complexities?

  • @dhirajvanarase4331
    @dhirajvanarase4331 4 месяца назад

    Please make a video on Salesforce Developer path

  • @foundry1534
    @foundry1534 3 месяца назад

    я удивлён тем, что много чего из этого списка есть в ЕГЭ

  • @RahulChauhan-0907
    @RahulChauhan-0907 4 месяца назад

    Sir, I am a data science enthusiast I have covered all the mathematics behind machine learning, practice the implementation and did same for deep learning also.
    I started NLP please guide me towards this role I want to get a good job this placement season it will start later this year kindly guide

  • @SS-lg8fc
    @SS-lg8fc 4 месяца назад

    Finally you've uploaded a video

  • @lordadamson
    @lordadamson 2 месяца назад

    thanks a lot

  • @Artsbyaishwarya
    @Artsbyaishwarya 4 месяца назад

    Good for revision

  • @jotrades26
    @jotrades26 3 месяца назад

    Highly misleading, came to see patterns but saw generic DS& Algo script , patterns are there, what matters is the patterns that build from intuitions not concepts

  • @hlearningkids
    @hlearningkids 3 месяца назад

    Very good

  • @esrx7a
    @esrx7a 4 месяца назад

    Thank you Sahil anna

  • @jaihindjaiswar5880
    @jaihindjaiswar5880 Месяц назад

    i love your videos😍

  • @sabbirhossan3499
    @sabbirhossan3499 4 месяца назад

    Sir I didn't understand leetcode problem what can do please help.

  • @ayushagarwal3864
    @ayushagarwal3864 3 месяца назад

    All this is good until DP and Graphs come into play :P

  • @Kaviarasu_NS
    @Kaviarasu_NS 4 месяца назад

    can you please share tools used to create these content

  • @i_youtube_
    @i_youtube_ 4 месяца назад

    Which software do you use for animation?

  • @1234567qwerification
    @1234567qwerification 2 месяца назад

    What about UnionFind?
    Is it in the topological sorting?

  • @zaidkhan-rx4bb
    @zaidkhan-rx4bb 4 месяца назад

    Amazing

  • @ReshmaShaik-zi9rz
    @ReshmaShaik-zi9rz 4 месяца назад

    Bro can u make a video on doing a project on git hub for beginners plss

  • @aj-lan284
    @aj-lan284 4 месяца назад

    you inspired me sahil. btw how did you get 300K package? is it your negotiation skills or due to COVID you got a high package? please tell me

  • @johnmahugu
    @johnmahugu 3 месяца назад

    thanks

  • @NavdeepVarshney-ep4ck
    @NavdeepVarshney-ep4ck 2 месяца назад

    Sor I want to know is currently there scope in the industry because there is massive layoff please help me I have to prepare.

  • @madhvishrivastava3646
    @madhvishrivastava3646 4 месяца назад

    Hi Sahil...sometimes I feel difficulty in thinking logic...I think it will improve over time by solving many problems. I don't know if I am right ?

  • @Channel-j8w
    @Channel-j8w 4 месяца назад +1

    6:18

  • @vanshraj4724
    @vanshraj4724 4 месяца назад

    where's dynamic programming? 💀

  • @pioneerx9066
    @pioneerx9066 2 месяца назад

    DP is no tmentioned?

  • @priyankashettigar4475
    @priyankashettigar4475 4 месяца назад

    Can you please tell how to improve logical and critical thinking skill??

    • @NatureNourisher
      @NatureNourisher 4 месяца назад

      Hai.you should solve sudoku and logical problems which are available free on internet

    • @hamza_dev
      @hamza_dev 4 месяца назад

      By practicing.

  • @MohanRam-mq2pk
    @MohanRam-mq2pk 4 месяца назад +6

    your rate of speech is a lit bit fast i couldn't get you so make it solw and improve credibility of your voice

    • @01_abhijeet49
      @01_abhijeet49 4 месяца назад +1

      Said like a true noob

    • @01_abhijeet49
      @01_abhijeet49 4 месяца назад

      Dont be a typical baby

    • @01_abhijeet49
      @01_abhijeet49 4 месяца назад

      He is very credible, you have none

    • @MohanRam-mq2pk
      @MohanRam-mq2pk 4 месяца назад +1

      Not everyone can understand that rate of speech which I felt fast and if he slows down I bet he will gain more reach

    • @MohanRam-mq2pk
      @MohanRam-mq2pk 4 месяца назад

      @@01_abhijeet49 it's just a suggestion don't react

  • @BrainyQuizZone
    @BrainyQuizZone 4 месяца назад

    I am bigger python can i join your course are not

  • @raghavbakshee9307
    @raghavbakshee9307 9 дней назад +1

    Bro speaks in lowercase

  • @Naam_nahi_hai
    @Naam_nahi_hai 4 месяца назад

    Sir Maine Ise kiya hai

  • @williejohnson3692
    @williejohnson3692 Месяц назад

    Subscribed but no email..

  • @non-stop-Code
    @non-stop-Code 4 месяца назад

    How to build logic

  • @pawanterdal2261
    @pawanterdal2261 4 месяца назад

    What about dynamic programming and graphs ?

  • @rahulkumar11a98
    @rahulkumar11a98 4 месяца назад

    Should we do DSA in JavaScript

    • @nofeah89
      @nofeah89 4 месяца назад +1

      Can do in any language JS is popular because its the backbone of web

  • @tigrankarapetyan622
    @tigrankarapetyan622 4 месяца назад

    Cool

  • @Kode_with_Koushik
    @Kode_with_Koushik 4 месяца назад

    Bhai sahil , aap thora dheere bola karo yaar... saans lo bich mein.
    Itna tez bolte ho matha ke upaar chala jata hai.
    Aap woh creator ho jisko 0.25x mein dekhna padta hai

  • @YeabsiraMulugeta-ly2rp
    @YeabsiraMulugeta-ly2rp 4 месяца назад +138

    People from Africa👇

  • @susobhandas6143
    @susobhandas6143 4 месяца назад

    Funny thumbnail

  • @krishna3876
    @krishna3876 4 месяца назад +16

    People from india👇

  • @ahsanshafiqchaudhry
    @ahsanshafiqchaudhry 4 месяца назад

    good effort, on lighter side if you are mentioning heap for top k elements (and not quick select), you are a noob! :D

  • @non-stop-Code
    @non-stop-Code 4 месяца назад

    I am the first viewer

  • @nagasairam9038
    @nagasairam9038 4 месяца назад +1

    777th like

  • @skmy-gn6cg
    @skmy-gn6cg 3 месяца назад

    aheiluxi

  • @hamids4550
    @hamids4550 3 месяца назад

    you Are going way too fast. slow down and take your time with explaining or showing samples. this not TikTok you have plenty of time bro

  • @fres-space
    @fres-space 4 месяца назад +1

    completely useless video

  • @AbdulRehman-d4u5s
    @AbdulRehman-d4u5s 4 месяца назад +1

    Will AI replace software engineer within next 10 years?

    • @i_youtube_
      @i_youtube_ 4 месяца назад +3

      NO

    • @kirannadimpalli9641
      @kirannadimpalli9641 4 месяца назад +3

      no, it will create more jobs. AI will only replace job which is repeatable work.

    • @BrainyQuizZone
      @BrainyQuizZone 4 месяца назад

      No

    • @BrainyQuizZone
      @BrainyQuizZone 4 месяца назад

      ​@@kirannadimpalli9641yes, Agree

    • @ChenOsipov
      @ChenOsipov 4 месяца назад

      Yes it will, the amount of software engineers will go down.

  • @gautamsingh0209
    @gautamsingh0209 Месяц назад

    A video where not claiming to be Google emp is nice to see, but looks like guy is reading from script. People please don't waste time here like i did

  • @slavak7729
    @slavak7729 4 месяца назад

    Useless leetcode engineers. Non need in real companies.

  • @slavak7729
    @slavak7729 4 месяца назад

    bl-bl-bl-bl. Please learn to speak

  • @bmno.4565
    @bmno.4565 2 месяца назад +1

    HASHMAP

  • @Brajgamer
    @Brajgamer 3 месяца назад +41

    Its one thing to master solving these problems. But its completely different story when it comes to identify these patterns in real world problems or modelling real issues with these data structures.

    • @svistetsky
      @svistetsky 2 месяца назад +5

      Once you've solved enough of each pattern, you can reduce any given problem to the basis (some "ideal", simple problem).

  • @YashTrivedi-iq3ft
    @YashTrivedi-iq3ft 4 месяца назад +27

    Bro speaks in Lowercase

  • @habibalnoman845
    @habibalnoman845 4 месяца назад +27

    happy to see you, love from Bangladesh ❤

    • @Bladermishal10
      @Bladermishal10 2 месяца назад

      Are you a software engineer in Bangladesh?

  • @Mwme2000
    @Mwme2000 Месяц назад +2

    Can you please tell me if it is important to slove competitive programming questions ? Is it important to my career. I am good at coding and problem solving but don't slove hard questions

  • @anamikakumari3879
    @anamikakumari3879 4 месяца назад +17

    It would be great if you could share curated questions list for each pattern for practice

  • @galanoth17
    @galanoth17 2 месяца назад +1

    Suprised DP patterns is not on the list.

  • @aadigupta3639
    @aadigupta3639 22 часа назад

    catcha is nt working

  • @qwerttest3550
    @qwerttest3550 4 месяца назад

    Hi Sahil, can I know if your running any consultancy for outside India jobs of so can you provide me the details

  • @fahmidzaman
    @fahmidzaman 4 месяца назад

    I want to be an AI engineer which topics should i learn durinh my BSC beside DSA

  • @akshayar5993
    @akshayar5993 3 месяца назад

    How to learn to solve subset and substring problems? Can you please guide

  • @himanshumishra6243
    @himanshumishra6243 3 месяца назад

    good video bro..could you please suggest me DSA course for golang

  • @iseeflowers
    @iseeflowers 2 месяца назад

    Didn’t know topological sort is important.

  • @dhirajvanarase4331
    @dhirajvanarase4331 4 месяца назад

    Can you please make video on Salesforce developer path.

  • @samplewebinar5783
    @samplewebinar5783 Месяц назад

    But the patterns will have subpatterns

  • @unknown-rl1bd
    @unknown-rl1bd Месяц назад

  • @peregrin71
    @peregrin71 2 месяца назад

    Competitive coding is not important.

  • @navin_thomas
    @navin_thomas 2 месяца назад

    Thanks for providing the advice regarding the bisect module functions.

  • @abhineveash
    @abhineveash 4 месяца назад

    I am a student of Kunal Kushwaha