one of the rare videos where the instructor not only is good at solving but also, and more importantly in this case, explaining the solution
@LeetCodeUniversity11 ай бұрын
I really appreciate your kind words!
@observer86111 ай бұрын
@@LeetCodeUniversity i wish you could do all 150 top interview questions ;)
@LeetCodeUniversity11 ай бұрын
@@observer861I have to get back to it for sure!
@sudhareddy13 ай бұрын
@@LeetCodeUniversity +1 looking for top 15o interview questions
@athenkosimamfengu82597 ай бұрын
You just got yourself a new follower. What a beautiful beautiful explanation, wow
@LeetCodeUniversity7 ай бұрын
I really appreciate that!!
@shashankvashishtha9352 жыл бұрын
Since i was searching this question for a better approach. thank you for this explanation.
@LeetCodeUniversity2 жыл бұрын
Thank you very much my friend!
@notjohnAtall2 жыл бұрын
This is really nice. A refreshing approach and good explanations. Subscribed
@LeetCodeUniversity2 жыл бұрын
Thank you for the kind words!
@RohanKumar-nx2ryАй бұрын
this is what i expect from my teacher anyways you teach really good bro😀
@LeetCodeUniversityАй бұрын
Thank you! I absolutely love to teach, glad you found it helpful!
@Emanuel-yb3qk16 күн бұрын
Thanks for the video.
@LeetCodeUniversity14 күн бұрын
My pleasure!
@melanieprevot4926 Жыл бұрын
Nice approach ! Thank you for sharing.
@LeetCodeUniversity Жыл бұрын
You are very welcome!
@chadsmith71Ай бұрын
very good. I am now a subscriber. great work.
@LeetCodeUniversityАй бұрын
Appreciate that!
@suggestaname16852 жыл бұрын
Thank yo so much for this amazing explanation. Really really good!
@LeetCodeUniversity2 жыл бұрын
Thank you so much, I am so glad You benefited from the video!
@dianakyrychyk3731 Жыл бұрын
Thank you for the great explanation!
@LeetCodeUniversity Жыл бұрын
Diana, you are very welcome!
@sysybaba4202 жыл бұрын
Love your explanation!
@LeetCodeUniversity2 жыл бұрын
Thank you, I am so glad I helped!
@suiryakumaran20348 ай бұрын
Great Explanation. Thank you so much.
@_4p_Ай бұрын
Thanks
@nikeshsingh20812 жыл бұрын
Great explanation..
@LeetCodeUniversity2 жыл бұрын
Thank you!
@axlash Жыл бұрын
thank you 😊😊😊😊
@LeetCodeUniversity Жыл бұрын
You are very welcome!
@musamehdiyevv5 ай бұрын
Thank you for the explanation. I think this code is simpler: class Solution { public void merge(int[] nums1, int m, int[] nums2, int n) { int p = m + n - 1; int p1 = m - 1; int p2 = n - 1; while (p2 >= 0) { if (p1 >= 0 && nums1[p1] > nums2[p2]) { nums1[p] = nums1[p1]; p1--; p--; } else { nums1[p] = nums2[p2]; p2--; p--; } } } }
@flyguynoaholdksa54612 жыл бұрын
Nice
@AanchalSharma-e4e2 ай бұрын
please upload more questions
@LeetCodeUniversityАй бұрын
I will!
@swapnil7222 күн бұрын
I did not understand why use the second while loop?
@Jaffar872 жыл бұрын
are u going to do all leetcode questions
@LeetCodeUniversity2 жыл бұрын
The plan is to do Blind 75 list and then do pattern based questions
@Jaffar872 жыл бұрын
Thanks it would be nice if you do all the leetcode questions
@kousthubganugapati71934 ай бұрын
will this work for every array
@LeetCodeUniversity29 күн бұрын
For sure!
@alastairhewitt3804 ай бұрын
Fantastic explanation Edit: In the while loop, if I only write p1 >= 0, then I get an index out of bound error, but if I include the logic for p1 & p2 then the code up until that point works properly. I am not really sure why that is since m & n are both 3. Can someone please help explain what I am not seeing? To me it is the same thing