Merge Sorted Array | Leetcode 88 | Arrays

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

КОМЕНТАРІ •

  • @subarnosingha3401
    @subarnosingha3401 2 роки тому +12

    Please continue these sessions, your explanation is totally understandable ♥️

  • @samlinus836
    @samlinus836 Рік тому +1

    The xplanation is too good sis.. I've been watching several videos of yours and have got better understanding of approach..
    I guess there is no need for the loop....
    while(i>=0){
    nums1[k--] = nums1[i--];
    }
    Since, it belongs to the nums1 array we can leave it as it is...
    Thank You sis 💓

  • @paawansingal788
    @paawansingal788 2 роки тому +5

    Perfect Code. thanks

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

    Best way of explanation. Whenever I have doubts on LeetCode problem, I come here and find solution with great explanation. Thank you for this much efforts.💕💕

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

      Thank you so much Paridhi, means a lot 🥲 😊🙌🏻

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

    Thank you didi approch dekha tha bas baki code khud se kara and chal gaya...love you didi..❤❤

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

    for (int i = 0; i < n; ++i) {
    nums1[m + i] = nums2[i];
    }
    Arrays.sort(nums1);
    }
    //it's simply like this

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

      time complexity nlogn zyada ho raha h iss approach mein...that's why the second approach explained above is better

  • @dolaoth6767
    @dolaoth6767 2 роки тому +6

    maam kya aap one on one session leskte ho , i am confused alot kuch pta nhi chal rha ek guidaince chahiye , pls maam , i am currently in 6th sem .

  • @m.lshoeb604
    @m.lshoeb604 2 роки тому +3

    Again great explanation

  • @Saurabh-fe2bg
    @Saurabh-fe2bg Рік тому

    Hey I just spent 40 minutes on this problem, it is marked as EASY but the logic is very significant here

  • @rtphenomenal5613
    @rtphenomenal5613 Рік тому

    got confused whether to study or listen your voice...it too sweet..Khair pdhai pe focus krte...

  • @mahendrabirla5026
    @mahendrabirla5026 Рік тому

    I am 9 years experienced learning from you

  • @mdarbaz7798
    @mdarbaz7798 Рік тому

    Great work i was known to first approach but i learned the second one thank you so much......

  • @wellakash
    @wellakash 9 місяців тому

    your voice is just awesom ...i love your voice...i just listen you for hours...

  • @IllIIIIIIllll
    @IllIIIIIIllll Рік тому

    Your explanation is best😊👍💯.

  • @DevanshBhanushali-m9g
    @DevanshBhanushali-m9g Рік тому +1

    Thank you , was confused but you cleared my doubts

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

    Please continue this way to teaching us.

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

    What hardware do you use to draw on computer?

    • @BADASSBLADE
      @BADASSBLADE 2 роки тому +5

      It's Microsoft Whiteboard with some license

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

      External mouse and Microsoft whiteboard is software :)

  • @ez1ogod
    @ez1ogod Рік тому

    You are the only one who could make me understand. Thank you ♥♥♥

  • @ysh___88
    @ysh___88 7 місяців тому

    Great explanation didi ❤️

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

    Best explanation. It is very easy to understand your explanation. Thanks a lot .

  • @amitrawat8879
    @amitrawat8879 Рік тому +1

    Thank you so much for this wonderful explanation. You made it too easy to understand this complex topic.

  • @darsh2114
    @darsh2114 2 роки тому +8

    If the nums2 array is completed(j

  • @TheSachinAlam
    @TheSachinAlam Рік тому

    Thank you. Ayushi. This was super smooth

  • @Satya-g5t
    @Satya-g5t 3 місяці тому

    nice explanation

  • @devikaparab17
    @devikaparab17 Рік тому

    love your videos, continue making them!

  • @viniz0r
    @viniz0r 8 місяців тому

    great video, thank you

  • @hakoonamatata4040
    @hakoonamatata4040 Рік тому

    the elements are not automatically enter in the next array

  • @manan.jain01
    @manan.jain01 2 роки тому +1

    Brilliant explanation ❤

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

    Thanks didi

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

    I think we can skip the while loop for i>=0 after while(i>=0 && j>=0) . Just we can make the while loop for j>=0 . This will be sufficient. Please correct me if i am wrong?

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

      No, the thing here is if elements remain in any of the two arrays and 1 array is finished,
      then we need to check both separately after loop ends.

  • @sagestudy
    @sagestudy Рік тому

    very great explanation

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

    Very Nice 👏👏

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

    mam your video help me thank you mam
    it company me degree matter karati hai ?

  • @chembetikarunakar814
    @chembetikarunakar814 Рік тому +1

    thanks explaining very well pls if possible do in python as well

    • @AyushiSharmaDSA
      @AyushiSharmaDSA  8 місяців тому

      sure, will keep that in mind, thank you :)

  • @harish5466
    @harish5466 Рік тому

    Thank you so much ... ur eplanation is awesome

  • @murtazalonsara
    @murtazalonsara Рік тому

    Nice explanation.💯
    Well done

  • @AkashSharmaSDE
    @AkashSharmaSDE Рік тому

    Thankyou now this ques is clear

  • @Nostalgic_Pixels5707
    @Nostalgic_Pixels5707 5 місяців тому

    I understand the approach , technique acha hai
    but sare testcases pass nahi hue leetcode me es solution se

  • @GovindSingh-ht9yk
    @GovindSingh-ht9yk 2 роки тому

    Nice explanation di, Please continue to explain more problems.

  • @menapatigowrishankar6236
    @menapatigowrishankar6236 8 місяців тому

    nyc explanation, and how to get approach like yours, let me know please

    • @AyushiSharmaDSA
      @AyushiSharmaDSA  7 місяців тому

      thank you :)
      Practice, Practice, Practice :)

  • @rishav144
    @rishav144 2 роки тому +2

    very good explanation ....thanks

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

    thanks didi....for this nice explanation🤗

  • @BruteCode2002
    @BruteCode2002 Рік тому

    Amazing videos

  • @nandeeshm9568
    @nandeeshm9568 Рік тому

    how do we get such intuition during coding test ?

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

    Why not to add other arrays values at the end and sort the array?

    • @rohityadav-iq5hm
      @rohityadav-iq5hm 10 місяців тому +1

      then it will take more time complexity of O(n) + O( (n+m) log (n+m) ) . first one is for adding n values to m and second is for ssorting the array of size (n+m).

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

    Best explanation

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

    This was great, easy to understand.

  • @vivekmalviya3036
    @vivekmalviya3036 7 місяців тому

    Thank u mam ❤❤

  • @vidhipandey6337
    @vidhipandey6337 Рік тому

    only 1 test case i.e., case 2 is passed ......... please recheck

  • @10_cse-ai_rashigupta18
    @10_cse-ai_rashigupta18 Рік тому

    I think in the first explaination there should be a mention that nums1[i]

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

    getting time exceeded error in leet code

  • @AYUSHKUMAR-vx7cy
    @AYUSHKUMAR-vx7cy Рік тому

    submit nahi ho pa raha hai answer

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

    Thank you🙌

  • @Mohansharma098
    @Mohansharma098 8 місяців тому

    thik h but video k length jyda bada nhi hai ?

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

    di plz tell me which graphic tablet you use plz its a humbel request plz plz plz plz plz

  • @301_yogeshsv8
    @301_yogeshsv8 Рік тому

    only 42/59 testcases passed

  • @pratyushtripathi1728
    @pratyushtripathi1728 Рік тому +1

  • @Vishal-cc2ld
    @Vishal-cc2ld Рік тому

    runtime error

  • @islombekabdurahmonov1115
    @islombekabdurahmonov1115 Рік тому

    omg i can't stand here. Great video

  • @AP-xh6dx
    @AP-xh6dx 2 роки тому

    very good explanation and approach
    thank you
    keep it up👍👍

  • @Nostalgic_Pixels5707
    @Nostalgic_Pixels5707 5 місяців тому

    maine aapka same code try kiya phir bhi nahi hua 😔

    • @AyushiSharmaDSA
      @AyushiSharmaDSA  5 місяців тому

      yr test case change krdiye honge, jab video bnayi hogi, to pkka chal rha hoga :)

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

    thanku mam

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

    for [1,2,3,0,0,0] length was supposes to be 6 why it is 3

    • @AyushiSharmaDSA
      @AyushiSharmaDSA  2 роки тому +6

      M value is 3 , meaning only 3 elements from start are of nums 1

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

    mam aap ho sake to hindi me video bana sake lot help for other student