First Missing Positive Leetcode

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 มิ.ย. 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

ความคิดเห็น • 24

  • @sonasrimu4520
    @sonasrimu4520 3 หลายเดือนก่อน +2

    Useful!❤

  • @sahilsaifi4962
    @sahilsaifi4962 10 หลายเดือนก่อน +2

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

  • @oded6188
    @oded6188 5 หลายเดือนก่อน +3

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

  • @India_68
    @India_68 3 หลายเดือนก่อน +1

    Nice😊😊😊

  • @jacobblack2544
    @jacobblack2544 17 วันที่ผ่านมา

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

  • @nitin_kaushik16
    @nitin_kaushik16 ปีที่แล้ว +2

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

    • @pratikshabakrola
      @pratikshabakrola  ปีที่แล้ว +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 ปีที่แล้ว +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 4 หลายเดือนก่อน +1

      ​@@pratikshabakrola😅

  • @swaraj7710
    @swaraj7710 11 หลายเดือนก่อน

    pretty awesome solution

    • @pratikshabakrola
      @pratikshabakrola  11 หลายเดือนก่อน +1

      Thank you Swaraj 🙏🏼

  • @vanvothe4817
    @vanvothe4817 ปีที่แล้ว +1

    Have a nice day.

    • @pratikshabakrola
      @pratikshabakrola  ปีที่แล้ว +2

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

  • @chetanyapratapsingh7068
    @chetanyapratapsingh7068 11 หลายเดือนก่อน

    Wow solutiion....make some more videos

    • @pratikshabakrola
      @pratikshabakrola  11 หลายเดือนก่อน

      Hello Chetanya,
      Will make more videos soon!

  • @rutikbodkeacademy1247
    @rutikbodkeacademy1247 6 หลายเดือนก่อน

    mam, can you make video for other leetcode problems.

    • @pratikshabakrola
      @pratikshabakrola  4 หลายเดือนก่อน

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

  • @ChenMosh
    @ChenMosh 22 วันที่ผ่านมา

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

  • @RajChauhan-iu3dc
    @RajChauhan-iu3dc 4 หลายเดือนก่อน +1

    I don't think it was hard 🙂