41. First Missing Positive | Cycle Sort | Using Array as Hash | HashMap | 5 Approaches

Sdílet
Vložit
  • čas přidán 5. 07. 2024
  • In this video, I'll talk about how to solve Leetcode 41. First Missing Positive | Cycle Sort | Using Array as Hash | HashMap | 5 Approaches
    Similar Problem For Practice - • 442. Find All Duplicat...
    Let's Connect:
    📝Linkedin: / aryan-mittal-0077
    📸 Instagram: / ez.pz.dsa
    📱Telegram : t.me/aryan_mittal_group
    🤖 Github: github.com/aryan-0077
    About Me:
    I am Aryan Mittal - A Software Engineer in Goldman Sachs, Speaker, Creator & Educator. During my free time, I create programming education content on this channel & also how to use that to grow :)
    ✨ Timelines✨
    0:00 - Important
    1:02 - Problem Explanation
    2:40 - Approach1 - Brute Force
    5:22 - Approach2 - Binary Search
    6:47 - Approach3 - Using Hash Map
    10:30 - Approach4 - Using Array as a HashMap
    27:15 - Approach5 - Cycle Sort
    ✨ Hashtags ✨
    #programming #Interviews #leetcode #faang #maang #datastructures #algorithms

Komentáře • 33

  • @ARYANMITTAL
    @ARYANMITTAL  Před 3 měsíci +6

    I know the video is a bit long than other most visited YT videos for the same problem, but please jump on to timestamps for the approach you feel like learning. [Though all 5 approaches are incremental] ❤

  • @kushal8261
    @kushal8261 Před 3 měsíci +6

    Don’t get discouraged because of the views or subs! What you’re doing is absolutely correct and the perseverance will yield the results sooner or later!

  • @ayaaniqbal3531
    @ayaaniqbal3531 Před 3 měsíci +4

    Bro just watched your whole video and now i am your subscriber .Your Explanation is very Clear.

  • @coderunner743
    @coderunner743 Před 3 měsíci

    Bro, I always try to watch your POTD video even if I missed it on the same day, because the extra points given by you are very useful.

  • @dampdigits.69
    @dampdigits.69 Před 3 měsíci

    I was looking for videos that discussed cycle sort approach, and this video is the only one that I found

  • @RohitKumar-hn6wj
    @RohitKumar-hn6wj Před 3 měsíci

    Nice explanation. efforts appreciated and hope you will be posting video regular.

  • @mainakchanda7918
    @mainakchanda7918 Před 3 měsíci +1

    Always know You have quality audience

  • @fraserdab
    @fraserdab Před 3 měsíci +1

    brooo dont be sad, i watch your videos everyday because i like watching maximum number of approaches in video format as it makes my life easier, i do spend quite some time on problems like reading multiple solutions but your videos make my life easier when I am lazy to read and understand solutions. Some cases in graphs i see people do bfs, dfs but i do see that you make sure that we also know what is the union find solution which is usually not there in most other videos

  • @dhruvrawatt9
    @dhruvrawatt9 Před 3 měsíci +1

    Aryan sir the amount of effort you are putting in to give back to the community is just amazing . I know hardwork is a mere normal thing for you but then also thanks a lot for teaching us things in easiest way possible.

  • @Jazzimus
    @Jazzimus Před 3 měsíci

    thanks a TON for covering all the approaches, i reached the second last approach myself but modifying the input array did seem a bit wrong. your way of explaining all possible approaches to a problem is intuitive and easy to understand.

  • @UmmeKNeha
    @UmmeKNeha Před 3 měsíci

    I'm from Bangladesh. I watched the whole video and the approach is great. I learned new things. So pls don't get disheartened for views or reach.

  • @priyanshu6173
    @priyanshu6173 Před 3 měsíci

    dont worry about the views and subs bro...your audience are only legendary people and thats why they are less in number

  • @ManojKumarManuSai
    @ManojKumarManuSai Před 3 měsíci

    Good explanation brother. Keep up the good work :)

  • @screensipsofficial
    @screensipsofficial Před 23 dny

    Great explanation

  • @kumarankit9059
    @kumarankit9059 Před 3 měsíci

    I think your video is the best for me to understand concept of cycle sort which was new to me, I salute you for your hardwork and dedication, looking forward to more amazing videos from you

  • @k.satish3663
    @k.satish3663 Před 3 měsíci

    Nice explantion.Thank you so much for the video

  • @PRANAVMAPPOLI
    @PRANAVMAPPOLI Před 3 měsíci

    Nice explanation of cyclic sort bro :)

  • @veekykumar4211
    @veekykumar4211 Před 3 měsíci

    appreciate your efforts

  • @chase.2595
    @chase.2595 Před 3 měsíci

    insane bro
    full support to u

  • @mrityunjoybarman9098
    @mrityunjoybarman9098 Před 3 měsíci

    You are great bro

  • @abhinavsinghclaire6768
    @abhinavsinghclaire6768 Před 3 měsíci

    Thanks for the efforts man❤

  • @justlc7
    @justlc7 Před 2 měsíci

    Thanks for the awesome video!
    Can you share the notetaking app's name you have used?

  • @sanskardhyani4112
    @sanskardhyani4112 Před 3 měsíci

    Thanks a lot sir 🥰

  • @infinitygaming7192
    @infinitygaming7192 Před 3 měsíci +1

    Nice

  • @Shivam-yp8xq
    @Shivam-yp8xq Před 3 měsíci

    amazing😍

  • @nooob_coder
    @nooob_coder Před 3 měsíci

    you deseve a million subs

  • @prajjwalchoubey
    @prajjwalchoubey Před 3 měsíci

    Thanks bro

  • @mohitkumawat6778
    @mohitkumawat6778 Před 3 měsíci

    Bro cyclic sort solution give runtime error on testcase 170 because of integer overflow what I do to resolve it

  • @vatsalkumar5690
    @vatsalkumar5690 Před 3 měsíci

    where are the code for each method?

  • @yashshidhi6779
    @yashshidhi6779 Před 2 měsíci +1

    Bhai, please make the video in hindi

  • @screensipsofficial
    @screensipsofficial Před 23 dny

    12 June 2024

  • @ajitmahatoshorts
    @ajitmahatoshorts Před 3 měsíci

    41:46 i m here

  • @priyanshusonii
    @priyanshusonii Před 3 měsíci

    Please speak a little bit slowly