Array - 50: Find first missing positive number in given array

Поділитися
Вставка
  • Опубліковано 2 лют 2025

КОМЕНТАРІ • 41

  • @amangupta4202
    @amangupta4202 3 роки тому +2

    I saw 2-3 videos of this particular question but still was not able to understand this. Your video explains it all. Thank you.

  • @vaibhavjaiswal7811
    @vaibhavjaiswal7811 4 роки тому +7

    Can't believe this video has such less views. This is better than the Aman Dhattarwal's one. Sir, just please uploading these videos.

  • @abhishekjaiswal6492
    @abhishekjaiswal6492 3 роки тому +1

    best explanation than others

  • @rafatparvren9249
    @rafatparvren9249 4 роки тому +1

    Your's explanation level is superbbbbb🔥

  • @opmishra8336
    @opmishra8336 4 роки тому +1

    simple and clear explained!

  • @codecrafts5263
    @codecrafts5263 3 роки тому +1

    I have an approach. Let's make a set of all positive numbers present in given array. Then iterate a new loop. In the loop, if any consecutive number doesn't match, break it. The point where it was broken, the value of i is the answer

  • @ridimamittal4064
    @ridimamittal4064 4 роки тому +2

    THANK YOU SOOO MUCH ! :)

    • @CodingSimplified
      @CodingSimplified  4 роки тому

      Glad you liked it. Keep Watching.

    • @manikantasai6118
      @manikantasai6118 3 роки тому

      @@CodingSimplified Andhariki oke reply icchi ammayi kanapadagaane marchesaavu .

  • @bharathKumar-or6gd
    @bharathKumar-or6gd 2 роки тому

    Great explanation , superbb

  • @shouvikdatta6831
    @shouvikdatta6831 4 роки тому

    Why did you you use "else i++ "?
    Can I write directly i++? Inside the while loop...

  • @seraj_valley
    @seraj_valley 3 роки тому +1

    alwys love ur lectures sir ,,you

  • @shyguy6424
    @shyguy6424 3 роки тому

    I couldn't understand the time complexity. Are you sure its O(n). It would be great help if you can explain the complexity part in details. In your example the loop runs 10 times even though you have only 7 elements. Could it happen that the loops runs about n*n times ? In an array where every elements have to swipe multiple times?

  • @divyanshsingh6163
    @divyanshsingh6163 4 роки тому

    sir why didnt you code this in nLOGn?That is faster than O(n)?

    • @CodingSimplified
      @CodingSimplified  4 роки тому

      O(n*logn) is slower than O(n). Hope it helps you. Thanks.

  • @rajeshvenkatraman7805
    @rajeshvenkatraman7805 3 роки тому

    what if the array is [ 100,900,-100,120] like this?

  • @jameysiddiqui6910
    @jameysiddiqui6910 4 роки тому +1

    great explanation

  • @ujjwaltarika9469
    @ujjwaltarika9469 3 роки тому +1

    Thank you!!

  • @piratekingamv9991
    @piratekingamv9991 2 роки тому +1

    Bruhhh sooo good

  • @surajrao4792
    @surajrao4792 4 роки тому

    but it is giving TLE sir for this method

  • @Everdonebruhhhhhhhhhhhhhhhhhh
    @Everdonebruhhhhhhhhhhhhhhhhhh 11 місяців тому

    what if array contains 0

  • @snehavedpathak3573
    @snehavedpathak3573 2 роки тому

    +1 subscriber

  • @Khabibullah
    @Khabibullah 4 роки тому +1

    Suup!!!

  • @sankethkharvi6155
    @sankethkharvi6155 2 роки тому

    u lost me at 6.45

  • @ronanhughes891
    @ronanhughes891 3 роки тому

    I tell you what, you programmers are clever as fuck but by Jesus can you not simply explain anything without throwing in random numbers for no reason or other answers to other questions that aren’t anything to do with the question in mind 😂