FIRST MISSING POSITIVE | LEETCODE # 41 | PYTHON SOLUTION

Sdílet
Vložit
  • čas přidán 5. 07. 2024
  • In this video we are solving an interesting problem with a very strange solution: First Missing Positive (Leetcode # 41).
    This is one of those questions where you probably won't figure out the solution on your own unless you've seen this before or are a serious big brain. Watch this video once and you're sorted though!
    TIMESTAMPS
    00:00 Introduction & Question Prompt
    00:28 Basic Examples
    01:25 Naive Solutions (Don't Use These)
    03:00 Optimal Solution + Diagram
    13:38 Coding
    20:15 Time/Space Analysis
    23:10 Outro
  • Věda a technologie

Komentáře • 9

  • @vishnukumartr
    @vishnukumartr Před 6 dny

    Thanks Bro for the Clear Explanation..

  • @subee128
    @subee128 Před 5 měsíci

    Thank you very much

  • @sriharshatenneti2530
    @sriharshatenneti2530 Před rokem

    Kudos to your explanation, i saw neetcode's solution which actually is made it so much complicated, but you made it such a cakewalk

    • @crackfaang
      @crackfaang  Před rokem +1

      No problem, that’s what I’m here for 😃

  • @YT.Nikolay
    @YT.Nikolay Před rokem +1

    Hacky, I need it to watch a couple times. Thanks for explanation!

    • @crackfaang
      @crackfaang  Před rokem +1

      Yea it's ridiculous but if you think about each iteration through the array it makes sense. One of those questions that once it clicks for you it makes sense forever

  • @varunshrivastava2706
    @varunshrivastava2706 Před rokem

    Bro, Now that Facebook has become Meta shouldn't you change your channel name to Cracking MAANG?

    • @crackfaang
      @crackfaang  Před rokem +1

      Haha and redo all my videos? Nah everyone knows it as Facebook. Meta is the parent company, nobody at Google says I work at Alphabet Inc.

    • @varunshrivastava2706
      @varunshrivastava2706 Před rokem +1

      @@crackfaang yup you are right, keep up the good work!!!