First Missing Positive Leetcode

Sdílet
Vložit
  • čas přidán 23. 06. 2022
  • Leetcode 41, Leetcode 41., First Missing Positive, First Missing Positive Leetcode Java, Leetcode Java Solution, Leetcode Java, First Missing Positive leetcode java solution, Leetcode 41 First Missing Positive, Leetcode 41. First Missing Positive, FAANG interview questions, coding interview preparation,
    #Leetcode, #LeetcodeJAVA, #LeetcodeJAVASolutions, #Leetcode41
    Connect with me on Facebook : / pratikshabakrola
    Subscribe to my channel: / @pratikshabakrola

Komentáře • 25

  • @sahilsaifi4962
    @sahilsaifi4962 Před 11 měsíci +2

    This is Video, hard question and understood in 3 mins. Great explaination.😊😊😊

  • @abishekb4968
    @abishekb4968 Před 19 dny

    Thanku

  • @sonasrimu4520
    @sonasrimu4520 Před 4 měsíci +2

    Useful!❤

  • @oded6188
    @oded6188 Před 6 měsíci +4

    They requested to solve it with O(n) but your are sorting the array so your solution is O(nlogn). Am I missing somthing?

  • @nitin_kaushik16
    @nitin_kaushik16 Před 2 lety +2

    Solution is pretty much cool, but I think O(n) time complexity solution must also be addressed in the video.

    • @pratikshabakrola
      @pratikshabakrola  Před 2 lety +1

      Hello Nitin,
      Thank you for pointing that out. If you would like to share anything on that, please add it in the comments here. I highly appreciate it.
      Thank you

    • @nitin_kaushik16
      @nitin_kaushik16 Před 2 lety +3

      @@pratikshabakrola
      Approach 1:-
      class Solution {
      public:
      int firstMissingPositive(vector& nums) {
      int i,number=1;
      sort(nums.begin(),nums.end());
      for(i=0;i

    • @India_68
      @India_68 Před 5 měsíci +1

      ​@@pratikshabakrola😅

  • @jacobblack2544
    @jacobblack2544 Před měsícem

    ma'am don't need not to be sorted to the NlogN be not needed question proper read

  • @India_68
    @India_68 Před 4 měsíci +1

    Nice😊😊😊

  • @vanvothe4817
    @vanvothe4817 Před 2 lety +1

    Have a nice day.

    • @pratikshabakrola
      @pratikshabakrola  Před 2 lety +2

      Hello Van,
      Nice to hear from you.
      You too have a good day and a happy weekend !

  • @swaraj7710
    @swaraj7710 Před rokem

    pretty awesome solution

  • @ChenMosh
    @ChenMosh Před měsícem

    your solution is running in nlogn time. its not the expected solution

  • @chetanyapratapsingh7068

    Wow solutiion....make some more videos

  • @rutikbodkeacademy1247
    @rutikbodkeacademy1247 Před 7 měsíci

    mam, can you make video for other leetcode problems.

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

      Hi,
      Thank you for expressing the interest. If leetcode videos receive more response, I will make more videos on that.

  • @RajChauhan-iu3dc
    @RajChauhan-iu3dc Před 5 měsíci +1

    I don't think it was hard 🙂