Find the disappearing numbers (LeetCode 448) | Full solution with examples | Study Algorithms

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ส.ค. 2024

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

  • @arnavkukreti2009
    @arnavkukreti2009 28 วันที่ผ่านมา

    I've seen your videos many times and you're way of explanation is great...!!! thank you

  • @sravansunkara9145
    @sravansunkara9145 11 วันที่ผ่านมา

    I always learn something new from you, thanks alot! btw I used the approach I learned from you "Counting Sort".

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

    your explanation is too good every one can understand . thanks bro

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

    That's pretty clever.
    Really interesting solution.👍

  • @pranav8609
    @pranav8609 ปีที่แล้ว +3

    you are underated

  • @TraderOff-Road
    @TraderOff-Road 2 หลายเดือนก่อน

    thaaanks

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

    Wow, Amazing Explanation 🥰🙏Thank You❤

  • @RavinderSingh-nh6th
    @RavinderSingh-nh6th ปีที่แล้ว +1

    Thank you so much

  • @priyankarai7917
    @priyankarai7917 ปีที่แล้ว

    great explanation👍👍

  • @l1z1ng3r
    @l1z1ng3r 8 หลายเดือนก่อน

    thank for the video) 💘

  • @shubhambelwal674
    @shubhambelwal674 3 หลายเดือนก่อน

    you have made this approach ??
    by the way ,i liked this approach

  • @subee128
    @subee128 8 หลายเดือนก่อน

    Thanks

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

    Tried this using the count sort. I have created a temp array and stored the frequencies.Is my approach can be considered as optimal?

    • @nikoo2805
      @nikoo2805 2 ปีที่แล้ว

      Yep…this solution will also be optimal

  • @nerd6134
    @nerd6134 2 ปีที่แล้ว

    Fire 🔥 bro

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

    I couldn’t understand the brute force method and efficient method time complexity difference... In brute force meth, iterating through every elements doesn’t take O(n) too? :)

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

      In Brute Force method you are iterating over the array again and again to find the element. So you are doing n iterations for n items.
      Hence, a time complexity of O(n^2)
      In the efficient method, you only iterate once
      Hope that helps :)

    • @mdanik1361
      @mdanik1361 2 ปีที่แล้ว

      @@nikoo2805 thank u...can u share the brute force code please?

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

    No need to create new array while multiplying with -1?

    • @ashrafel-gaaly8657
      @ashrafel-gaaly8657 10 หลายเดือนก่อน +1

      I think you do if some elements in the array are negative. In these examples they are all positive and yes you can update the existing array

  • @Englishwithhimanshu8581
    @Englishwithhimanshu8581 10 หลายเดือนก่อน

    Good bhaiya

  • @RohanSingh-my3nl
    @RohanSingh-my3nl 4 หลายเดือนก่อน

    Making Video is So long for no reason
    Thuuuuuuuuuuuuuuuuuuuuuuuuuuuuu

    • @nikoo28
      @nikoo28  4 หลายเดือนก่อน +2

      Everyone has a different learning pace my friend. For quick learners there are always timestamps and chapters you can skip to :)