Contains Duplicate II (Sliding Window) -(Airbnb, Palantir Technologies): Explanation ➕ Live Coding

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024

Комментарии • 30

  • @duggubaccha5390
    @duggubaccha5390 Год назад +5

    explanation is to much better than other. Great!

  • @souravjoshi2293
    @souravjoshi2293 Год назад +2

    Thanks a lot champ

  • @soumeshnayak4546
    @soumeshnayak4546 11 месяцев назад +1

    Hlo frnd your explanation is very nyc.I request you to make some videos on game theory

  • @ShivamGupta-cx3hy
    @ShivamGupta-cx3hy Год назад +2

    Thank You Sir

  • @manishjoshi9737
    @manishjoshi9737 7 месяцев назад

    bhaiya ek request thi , ki aap jase koi video bnate ho to uske end m ek follow up ques bhi bta skte ho jo usi concept pr based ho , like a homework question ......please do if possible🤗

  • @boomburstshorts2347
    @boomburstshorts2347 Год назад +1

    Bhai Contains Duplicate III (Leetcode-220) bhi kra do na.....Your Explaination ....BTW waiting for Contains Duplicate III

    • @codestorywithMIK
      @codestorywithMIK  Год назад

      Let me plan that soon.
      Thanks a lot for watching ❤️❤️

  • @ayu_slayss
    @ayu_slayss 28 дней назад

    Sir, can you add contains duplicate iii also?

  • @girikgarg8
    @girikgarg8 11 месяцев назад +1

    Nice explanation

  • @tosifkankod1300
    @tosifkankod1300 11 месяцев назад +1

    well explained thank you

  • @aws_handles
    @aws_handles 8 месяцев назад

    Great explanation man

  • @tosifkankod1300
    @tosifkankod1300 11 месяцев назад +1

    subscribed bro thanks so much

    • @codestorywithMIK
      @codestorywithMIK  11 месяцев назад

      Thank you and welcome to my small channel 🙏😇❤️

  • @hershitrustagi9427
    @hershitrustagi9427 Год назад +2

    why we didn't take j-i+1 to calculate the length so that we can compare with it k
    because window size ig should be j-i+1 because it is a zero base indexing array na

  • @divyanshsagar
    @divyanshsagar Год назад +1

    awesome!

  • @AkOp-bf9vm
    @AkOp-bf9vm 14 дней назад

    T.C is O(N)
    S.C is O(K)

  • @pranjalyadav4006
    @pranjalyadav4006 9 месяцев назад +1

    great

  • @c00per_
    @c00per_ 3 месяца назад

    whats the time complexity of this solution?

  • @ManasNandMohan
    @ManasNandMohan 7 месяцев назад

    use st.erase in place of st.remove in case it gives compilation error

  • @pratyushpandey1145
    @pratyushpandey1145 Год назад +1

    class Solution {
    public:
    bool containsNearbyDuplicate(vector& nums, int k) {
    unordered_map mp;
    for(int i=0;i

  • @sanjaybtambe
    @sanjaybtambe 15 дней назад

    Sliding window ke naam pe aapne two pointers laga diye

    • @codestorywithMIK
      @codestorywithMIK  15 дней назад

      This is an old video. I might have got confused. Apologies for the inconvenience Sanjay ❤️🙏😇

    • @AkOp-bf9vm
      @AkOp-bf9vm 14 дней назад

      Bro isi ko sliding window bolte hai bcz we are sliding a fixed sized window