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
@LeetCodeUniversity Жыл бұрын
I really appreciate your kind words!
@observer861 Жыл бұрын
@@LeetCodeUniversity i wish you could do all 150 top interview questions ;)
@LeetCodeUniversity11 ай бұрын
@@observer861I have to get back to it for sure!
@sudhareddy14 ай бұрын
@@LeetCodeUniversity +1 looking for top 15o interview questions
@athenkosimamfengu82598 ай бұрын
You just got yourself a new follower. What a beautiful beautiful explanation, wow
@LeetCodeUniversity8 ай бұрын
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!
@RohanKumar-nx2ry2 ай бұрын
this is what i expect from my teacher anyways you teach really good bro😀
@LeetCodeUniversity2 ай бұрын
Thank you! I absolutely love to teach, glad you found it helpful!
@melanieprevot4926 Жыл бұрын
Nice approach ! Thank you for sharing.
@LeetCodeUniversity Жыл бұрын
You are very welcome!
@Emanuel-yb3qkАй бұрын
Thanks for the video.
@LeetCodeUniversityАй бұрын
My pleasure!
@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!
@notjohnAtall2 жыл бұрын
This is really nice. A refreshing approach and good explanations. Subscribed
@LeetCodeUniversity2 жыл бұрын
Thank you for the kind words!
@dianakyrychyk3731 Жыл бұрын
Thank you for the great explanation!
@LeetCodeUniversity Жыл бұрын
Diana, you are very welcome!
@suiryakumaran20348 ай бұрын
Great Explanation. Thank you so much.
@sysybaba4202 жыл бұрын
Love your explanation!
@LeetCodeUniversity2 жыл бұрын
Thank you, I am so glad I helped!
@chadsmith712 ай бұрын
very good. I am now a subscriber. great work.
@LeetCodeUniversity2 ай бұрын
Appreciate that!
@_4p_2 ай бұрын
Thanks
@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--; } } } }
@nikeshsingh20812 жыл бұрын
Great explanation..
@LeetCodeUniversity2 жыл бұрын
Thank you!
@axlash Жыл бұрын
thank you 😊😊😊😊
@LeetCodeUniversity Жыл бұрын
You are very welcome!
@swapnil72Ай бұрын
I did not understand why use the second while loop?
@flyguynoaholdksa54612 жыл бұрын
Nice
@AanchalSharma-e4e3 ай бұрын
please upload more questions
@LeetCodeUniversity2 ай бұрын
I will!
@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
@LeetCodeUniversityАй бұрын
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