No video

Merge Sorted Array | Leetcode 88 | Arrays

  Рет қаралды 42,035

Ayushi Sharma

Ayushi Sharma

Күн бұрын

Time Complexity : O(m+n)
Space Complexity : O(1)
Problem Link : leetcode.com/p...
C++ Code Link : github.com/Ayu...
Please like, share and subscribe if you found the video useful. Feel free to ask in comments section if you have any doubts. :)
#DataStructuresAndAlgorithms
#LoveBabbarDSASheet
#interviewpreparation
#AyushiSharma
Merge Sorted Array solution
Merge Sorted Array Leetcode
Merge Sorted Array C++
Merge Sorted Array Java
Merge Sorted Array Python
🔥🔥🔥🔥👇👇👇
Join telegram channel for more updates on placement preparation : t.me/AyushiSha...
Checkout the series: 🔥🔥🔥
👉Interview Experiences : • Interview Experiences
👉 Array: • Arrays
👉 Linked List : • Linked List
👉 Heap : • Heap
👉 Recursion : • Recursion
👉 Stack and Queue : • Stack And Queue
👉 Greedy : • Greedy
👉 Dynamic Programming : • Dynamic Programming
👉 Leetcode contests : • Leetcode contests
👉 Leetcode June Challenge : • Leetcode June Challenge
👉 Leetcode July Challenge : • Leetcode July Challenge
LIKE | SHARE | SUBSCRIBE 🔥🔥😊

Пікірлер: 114
@subarnosingha3401
@subarnosingha3401 2 жыл бұрын
Please continue these sessions, your explanation is totally understandable ♥️
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Thanks Subarno, sure 😊
@paawansingal788
@paawansingal788 2 жыл бұрын
Perfect Code. thanks
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Welcome Paawan :)
@dolaoth6767
@dolaoth6767 2 жыл бұрын
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 .
@satyamdwivedi5312
@satyamdwivedi5312 2 жыл бұрын
kzbin.info/www/bejne/eWXSc4uCp5itpdU
@umang1226
@umang1226 2 жыл бұрын
Go to coding ninjas ..
@gouravbasak2380
@gouravbasak2380 2 жыл бұрын
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
@samlinus836
@samlinus836 Жыл бұрын
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 💓
@darsh2114
@darsh2114 2 жыл бұрын
If the nums2 array is completed(j
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
yess :)
@paridhijain7062
@paridhijain7062 2 жыл бұрын
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 🥲 😊🙌🏻
@iam_niraj
@iam_niraj 2 жыл бұрын
Thanks didi
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Welcome Niraj, glad it was helpful 😊
@rtphenomenal5613
@rtphenomenal5613 8 ай бұрын
got confused whether to study or listen your voice...it too sweet..Khair pdhai pe focus krte...
@AyushiSharmaDSA
@AyushiSharmaDSA 8 ай бұрын
ohh, is it 😅
@wellakash
@wellakash 5 ай бұрын
your voice is just awesom ...i love your voice...i just listen you for hours...
@AyushiSharmaDSA
@AyushiSharmaDSA 4 ай бұрын
Thank you so much 😀
@m.lshoeb604
@m.lshoeb604 2 жыл бұрын
Again great explanation
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Thank you 😊
@mahendrabirla5026
@mahendrabirla5026 10 ай бұрын
I am 9 years experienced learning from you
@AyushiSharmaDSA
@AyushiSharmaDSA 8 ай бұрын
my pleasure :)
@user-np1sy1vd4g
@user-np1sy1vd4g Жыл бұрын
Thank you , was confused but you cleared my doubts
@AyushiSharmaDSA
@AyushiSharmaDSA 4 ай бұрын
thank you, glad it was helpful :)
@mdarbaz7798
@mdarbaz7798 10 ай бұрын
Great work i was known to first approach but i learned the second one thank you so much......
@AyushiSharmaDSA
@AyushiSharmaDSA 8 ай бұрын
welcome, glad you liked it :)
@Saurabh-fe2bg
@Saurabh-fe2bg 9 ай бұрын
Hey I just spent 40 minutes on this problem, it is marked as EASY but the logic is very significant here
@amitrawat8879
@amitrawat8879 Жыл бұрын
Thank you so much for this wonderful explanation. You made it too easy to understand this complex topic.
@AyushiSharmaDSA
@AyushiSharmaDSA Жыл бұрын
Thanks Amit 🥹😊 glad it was helpful
@rajankhunt7002
@rajankhunt7002 2 жыл бұрын
Please continue this way to teaching us.
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Thanks Rajan, sure 🤗
@shubhamkumarjha9192
@shubhamkumarjha9192 Жыл бұрын
Thank you didi approch dekha tha bas baki code khud se kara and chal gaya...love you didi..❤❤
@AyushiSharmaDSA
@AyushiSharmaDSA Жыл бұрын
Welcome Shubham 🙌🏻🤗
@rishav144
@rishav144 2 жыл бұрын
very good explanation ....thanks
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Welcome Rishav , glad it was helpful 😊
@avinashvishwakarma6488
@avinashvishwakarma6488 Жыл бұрын
Best explanation. It is very easy to understand your explanation. Thanks a lot .
@AyushiSharmaDSA
@AyushiSharmaDSA Жыл бұрын
Welcome Avinash, glad it was helpful :)
@avinashvishwakarma6488
@avinashvishwakarma6488 Жыл бұрын
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 Жыл бұрын
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.
@IllIIIIIIllll
@IllIIIIIIllll 10 ай бұрын
Your explanation is best😊👍💯.
@AyushiSharmaDSA
@AyushiSharmaDSA 8 ай бұрын
thank you :)
@ez1ogod
@ez1ogod 11 ай бұрын
You are the only one who could make me understand. Thank you ♥♥♥
@AyushiSharmaDSA
@AyushiSharmaDSA 4 ай бұрын
thank you, glad it was helpful :)
@pratyushtripathi1728
@pratyushtripathi1728 Жыл бұрын
@drinks675
@drinks675 2 жыл бұрын
What hardware do you use to draw on computer?
@BADASSBLADE
@BADASSBLADE 2 жыл бұрын
It's Microsoft Whiteboard with some license
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
External mouse and Microsoft whiteboard is software :)
@ysh___88
@ysh___88 3 ай бұрын
Great explanation didi ❤️
@AyushiSharmaDSA
@AyushiSharmaDSA 3 ай бұрын
Thanks a lot 😊
@viniz0r
@viniz0r 4 ай бұрын
great video, thank you
@AyushiSharmaDSA
@AyushiSharmaDSA 4 ай бұрын
Glad you liked it!
@Nostalgic_Pixels5707
@Nostalgic_Pixels5707 Ай бұрын
I understand the approach , technique acha hai but sare testcases pass nahi hue leetcode me es solution se
@chembetikarunakar814
@chembetikarunakar814 Жыл бұрын
thanks explaining very well pls if possible do in python as well
@AyushiSharmaDSA
@AyushiSharmaDSA 4 ай бұрын
sure, will keep that in mind, thank you :)
@TheSachinAlam
@TheSachinAlam Жыл бұрын
Thank you. Ayushi. This was super smooth
@AyushiSharmaDSA
@AyushiSharmaDSA 4 ай бұрын
thank you, glad it was helpful :)
@harish5466
@harish5466 Жыл бұрын
Thank you so much ... ur eplanation is awesome
@AyushiSharmaDSA
@AyushiSharmaDSA Жыл бұрын
Thanks Harish ❤️
@devikaparab17
@devikaparab17 8 ай бұрын
love your videos, continue making them!
@AyushiSharmaDSA
@AyushiSharmaDSA 8 ай бұрын
Thank you! Will do! :)
@manan.jain01
@manan.jain01 2 жыл бұрын
Brilliant explanation ❤
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Thanks Manan :)
@GovindSingh-ht9yk
@GovindSingh-ht9yk 2 жыл бұрын
Nice explanation di, Please continue to explain more problems.
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Thanks Govind :)
@nishitsolanki1648
@nishitsolanki1648 Жыл бұрын
mam your video help me thank you mam it company me degree matter karati hai ?
@AkashSharmaSDE
@AkashSharmaSDE 11 ай бұрын
Thankyou now this ques is clear
@AyushiSharmaDSA
@AyushiSharmaDSA 4 ай бұрын
thank you, glad it was helpful :)
@saurabhshukla2605
@saurabhshukla2605 2 жыл бұрын
This was great, easy to understand.
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Thank you Saurabh 😊
@10_cse-ai_rashigupta18
@10_cse-ai_rashigupta18 Жыл бұрын
I think in the first explaination there should be a mention that nums1[i]
@menapatigowrishankar6236
@menapatigowrishankar6236 4 ай бұрын
nyc explanation, and how to get approach like yours, let me know please
@AyushiSharmaDSA
@AyushiSharmaDSA 3 ай бұрын
thank you :) Practice, Practice, Practice :)
@pranavmahajan4190
@pranavmahajan4190 7 ай бұрын
Why not to add other arrays values at the end and sort the array?
@rohityadav-iq5hm
@rohityadav-iq5hm 6 ай бұрын
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).
@hakoonamatata4040
@hakoonamatata4040 Жыл бұрын
the elements are not automatically enter in the next array
@vidhipandey6337
@vidhipandey6337 11 ай бұрын
only 1 test case i.e., case 2 is passed ......... please recheck
@sathiroy5146
@sathiroy5146 2 жыл бұрын
thanks didi....for this nice explanation🤗
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Welcome Sathi, glad it was helpful 😊
@murtazalonsara
@murtazalonsara Жыл бұрын
Nice explanation.💯 Well done
@AyushiSharmaDSA
@AyushiSharmaDSA 4 ай бұрын
thank you, glad it was helpful :)
@vivekmalviya3036
@vivekmalviya3036 3 ай бұрын
Thank u mam ❤❤
@AyushiSharmaDSA
@AyushiSharmaDSA 3 ай бұрын
Most welcome 😊
@sagestudy
@sagestudy Жыл бұрын
very great explanation
@AyushiSharmaDSA
@AyushiSharmaDSA Жыл бұрын
😊 thank you
@jayantaghosh7678
@jayantaghosh7678 2 жыл бұрын
Best explanation
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Thanks 😊
@abdulkavi6227
@abdulkavi6227 7 ай бұрын
getting time exceeded error in leet code
@nandeeshm9568
@nandeeshm9568 Жыл бұрын
how do we get such intuition during coding test ?
@explorewithshobhit9157
@explorewithshobhit9157 2 жыл бұрын
Very Nice 👏👏
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Thank you Shobhit :)
@BruteCode2002
@BruteCode2002 Жыл бұрын
Amazing videos
@AyushiSharmaDSA
@AyushiSharmaDSA 4 ай бұрын
thank you, glad it was helpful :)
@prithvinaidu4825
@prithvinaidu4825 2 жыл бұрын
Thank you🙌
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Welcome 🤗
@LearnTravelTeachTrain
@LearnTravelTeachTrain 2 жыл бұрын
for [1,2,3,0,0,0] length was supposes to be 6 why it is 3
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
M value is 3 , meaning only 3 elements from start are of nums 1
@AYUSHKUMAR-vx7cy
@AYUSHKUMAR-vx7cy Жыл бұрын
submit nahi ho pa raha hai answer
@Mohansharma098
@Mohansharma098 5 ай бұрын
thik h but video k length jyda bada nhi hai ?
@shivamrai5235
@shivamrai5235 2 жыл бұрын
thanku mam
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Welcome, glad it was helpful :)
@islombekabdurahmonov1115
@islombekabdurahmonov1115 Жыл бұрын
omg i can't stand here. Great video
@AP-xh6dx
@AP-xh6dx Жыл бұрын
very good explanation and approach thank you keep it up👍👍
@AyushiSharmaDSA
@AyushiSharmaDSA Жыл бұрын
So nice of you, thanks 🤩🤗
@Vishal-cc2ld
@Vishal-cc2ld 10 ай бұрын
runtime error
@301_yogeshsv8
@301_yogeshsv8 Жыл бұрын
only 42/59 testcases passed
@krishnaanandiswaraa
@krishnaanandiswaraa Жыл бұрын
di plz tell me which graphic tablet you use plz its a humbel request plz plz plz plz plz
@AyushiSharmaDSA
@AyushiSharmaDSA Жыл бұрын
Hi, I use external mouse 😅
@Nostalgic_Pixels5707
@Nostalgic_Pixels5707 Ай бұрын
maine aapka same code try kiya phir bhi nahi hua 😔
@AyushiSharmaDSA
@AyushiSharmaDSA Ай бұрын
yr test case change krdiye honge, jab video bnayi hogi, to pkka chal rha hoga :)
@nishitsolanki1648
@nishitsolanki1648 Жыл бұрын
mam aap ho sake to hindi me video bana sake lot help for other student
Lecture 20: Solving LeetCode/CodeStudio Questions [Arrays]
35:38
CodeHelp - by Babbar
Рет қаралды 460 М.
Gli occhiali da sole non mi hanno coperto! 😎
00:13
Senza Limiti
Рет қаралды 24 МЛН
大家都拉出了什么#小丑 #shorts
00:35
好人小丑
Рет қаралды 78 МЛН
女孩妒忌小丑女? #小丑#shorts
00:34
好人小丑
Рет қаралды 98 МЛН
Magic trick 🪄😁
00:13
Andrey Grechka
Рет қаралды 68 МЛН
Median of Two Sorted Arrays - Binary Search - Leetcode 4
22:22
Winning Facebook (Meta) Hacker Cup Qual Round 2022?
53:55
Neal Wu
Рет қаралды 2,4 МЛН
Winning LeetCode Weekly Contest 198
40:27
William Lin
Рет қаралды 112 М.
String to Integer atoi 🔥| Leetcode 8 | String
16:59
Ayushi Sharma
Рет қаралды 40 М.
Google Coding Interview With A High School Student
57:24
Clément Mihailescu
Рет қаралды 4,1 МЛН
Bjarne Stroustrup: C++ | Lex Fridman Podcast #48
1:47:13
Lex Fridman
Рет қаралды 1 МЛН
Compare Version Numbers | Leetcode 165 | Strings | Day-25
14:29
Ayushi Sharma
Рет қаралды 10 М.
Merge Sorted Array | Leetcode 88
11:36
Technosage
Рет қаралды 49 М.
Gli occhiali da sole non mi hanno coperto! 😎
00:13
Senza Limiti
Рет қаралды 24 МЛН