First missing positive leetcode solution

Sdílet
Vložit
  • čas přidán 7. 02. 2021
  • First missing positive Integer #41 | JavaScript Solution | coding interview question asked by google amazon and Microsoft
    leet code
    #leetcode #javaScript #interview
    Follow me for technology updates
    * groups/AlgoAndDSinJavaScript
    * techsith1
    * / patelhemil
    * / techsith
  • Věda a technologie

Komentáře • 15

  • @sogggy
    @sogggy Před 3 lety +3

    Did you have a link to your codepen? The last solution is fails when the input is [3,4,-1,1] on leetcode. Also on the last solution it looks like you have a nested for loop, shouldn't time complexity be O(n^2)?
    thank you for all your tutorials

  • @Noobmaster69_bro
    @Noobmaster69_bro Před rokem

    your last solution, isn't time complexity there O(n^2) , since u used, one for loop inside the other ? We need O(n) right?

  • @saurabhchauhan232
    @saurabhchauhan232 Před 3 lety +1

    Thank you !

  • @vishal_sharma_rha
    @vishal_sharma_rha Před 3 lety +1

    Thank you sir 🤟

  • @himanshubansal6425
    @himanshubansal6425 Před 3 lety +1

    Thank you for posting problem

  • @Tesudzi
    @Tesudzi Před 3 lety +1

    this is so high lever 4 me, thank you syr for sharing your knowledge.
    can you give any advises to grow faster in solving problems out of brute force? thanks

    • @InterviewNest
      @InterviewNest  Před 3 lety

      Brute force would be to go from 1 see if its there, and then 2 to see if its there. for the length of the array.

  • @viratpatil
    @viratpatil Před 3 lety

    Where is the link of entire series pls ?

    • @InterviewNest
      @InterviewNest  Před 3 lety +1

      here is the link for the series. more videos to come.. czcams.com/play/PLUunrGF1sBI9dCUOESmb5aU8DQE0vqJ_n.html

    • @viratpatil
      @viratpatil Před 3 lety

      @@InterviewNest Thanks Cheerw