Minimum Size Subarray Sum (LeetCode 209) | Full solution with animations | Variable Sliding Window

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

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

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

    Got it in one go. Very nice explaination sir ❤

  • @hajeeramohamad7641
    @hajeeramohamad7641 4 หลายเดือนก่อน +3

    Sir... please drop a recursion playlist. Pleaseeeee. I find it very confusing. The way you teach is very crisp and clear with all the illustrations.

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

      I need to do that soon

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

    I make my self change to understand (solve problem) all video of this channel

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

    if we are considering continuous sub arrays, then why can't we use prefix sum instead?
    this is my code
    int minSubArrayLen(int target, vector& nums) {
    int sum=0;
    for(int i=0;i=0;i--){
    if(sum-nums[i]==target){
    return count;
    }
    count++;
    }
    if(sum==target){
    return count;
    }
    return 0;
    }
    but giving wrong answer for array [1,2,3,4,5], whose sum equal 11.

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

    great video😄

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

    Thanks

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

    What is the time complexity of this solution ?

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

      That will be O(n) since you are traversing the array only once

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

    great

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

    awesome

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

    From some of past day i found you and really impressed with you, and want to know more about you sir and connect with you in LinkedIn could we??

  • @THOSHI-cn6hg
    @THOSHI-cn6hg 3 หลายเดือนก่อน

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

    DSA sheet🙃