Merge Sorted Array - Leetcode 88 - Python

  Рет қаралды 218,909

NeetCode

NeetCode

Күн бұрын

Пікірлер: 159
@NeetCode
@NeetCode 2 жыл бұрын
🚀 neetcode.io/ - I created a FREE site to make interview prep a lot easier, hope it helps! ❤
@phantombeing3015
@phantombeing3015 11 ай бұрын
It's not fully free though. It asks for subscription in some videos.
@theoreticalphysics3644
@theoreticalphysics3644 3 жыл бұрын
yeah ngl this wasn't "easy" imo. this really helped me though, thanks
@thisinnotmystomach6279
@thisinnotmystomach6279 4 ай бұрын
agreed
@jpfdjsldfji
@jpfdjsldfji 11 ай бұрын
Great solution man! Managed to come up with a slightly cleaner solution that avoids having to loop over n at the end to continue filling: i = m+n-1, m = m-1, n = n-1 while n >= 0: if m >= 0 and nums1[m] > nums2[n]: nums1[i] = nums1[m] m-=1 else: nums1[i] = nums2[n] n-=1 i-=1 Because we only care about iterating n overall, as that's our indicator that the fill has been completed, we can remove m>=0 from our while loop conditions and just ensure that we no longer consider m in our fill if it's completed. Both solutions ar efine, but if it's concision you're looking for, I hope that helps guys!
@SAROJKUMAR-xe8vm
@SAROJKUMAR-xe8vm 8 ай бұрын
nice sol'n.
@jackfrost8969
@jackfrost8969 5 ай бұрын
your index bounds are incorrect. this is correct solution in Java: class Solution { public void merge(int[] nums1, int m, int[] nums2, int n) { int resultIndex = m + n - 1; while (n > 0) { if (m > 0 && nums1[m - 1] > nums2[n - 1]) { nums1[resultIndex] = nums1[m - 1]; m -= 1; } else { nums1[resultIndex] = nums2[n - 1]; n -= 1; } resultIndex -= 1; } } }
@jpfdjsldfji
@jpfdjsldfji 5 ай бұрын
@@jackfrost8969 They are correct- but as I've seen from your solution, they can be improved further for concision. Thanks for the insight, nice find.
@Shubhamkumar-ng1pm
@Shubhamkumar-ng1pm Жыл бұрын
its certainly not a leetcode easy its medium difficulty.
@qbmain1487
@qbmain1487 2 жыл бұрын
thanks! Finally solved after 1 day of struggling :(
@aritralahiri8321
@aritralahiri8321 3 жыл бұрын
Clear and Crisp explanation , always love your explanations . Gracias !
@harpercfc_
@harpercfc_ 2 жыл бұрын
Not as marquee as other medium or hard problems are but I do have some takeaways from it. Thanks for your video as always 🥰
@lamedev1342
@lamedev1342 2 жыл бұрын
My way worked for a bit and was a lot more complicated. This was much better. Initially I just decided to iterate through nums1 to check if there was a 0, which indicated empty space. Then I just put the remaining values of nums2 in that order so all values would be filled. Then I performed selection sort on nums1 to sort. It didn't work because an array could have [-1,0,3,0,0,0]
@Se7_7
@Se7_7 Жыл бұрын
lol.
@jacksparr0w300
@jacksparr0w300 4 ай бұрын
I really appreciate that example and clarity on that edge case.
@neighboroldwang
@neighboroldwang 5 ай бұрын
My brain blowed up with these three pointers... Good brain training...
@diassyes
@diassyes 2 жыл бұрын
Thanks. I saw a more minimalistic version in discussions (Go language): func merge(nums1 []int, m int, nums2 []int, n int) { for n > 0 { if m == 0 || nums1[m-1] < nums2[n-1] { nums1[m + n - 1] = nums2[n-1] n-- } else { nums1[m + n - 1] = nums1[m-1] m-- } } }
@nhbknhb
@nhbknhb 2 жыл бұрын
this one is cool
@crimsonghoul8983
@crimsonghoul8983 Жыл бұрын
There is a small issue here. n > 0 would work if m > n. Some test cases would fail if only n > 0 was utilized. Also, assigning m + n -1 as last simplifies the program.
@sarvarkhalimov111
@sarvarkhalimov111 2 жыл бұрын
Thank you, with your step by step explanation, it was easy to grasp and follow.
@CSam-hc4uk
@CSam-hc4uk 3 жыл бұрын
Very clear explanation. Thank you very much!
@NeetCode
@NeetCode 3 жыл бұрын
Thanks!
@TheVzlalover
@TheVzlalover 2 жыл бұрын
Thanks for the video! Exactly at 3:13, when you said "How do we get the largest value?", I already got the idea how to optimally solve the problem.
@d_starcode1197
@d_starcode1197 9 ай бұрын
Why the condition for while loop is > 0 ,it should be >=0 right? Because it needs to chsck the first element also
@siyandasphesihlengcobo4623
@siyandasphesihlengcobo4623 2 ай бұрын
This was a superb explaination! Other videos were complicating it.
@spaghettiking653
@spaghettiking653 7 ай бұрын
Yay, I managed to get this one one my own. I was wondering what other algorithm you could've done, since an O(m+n) solution is supposed to be optimal.
@shamikguharay3177
@shamikguharay3177 3 ай бұрын
Some test cases will fail for this. Added latest code using similar approach that gets passed for all test cases.. class Solution: def merge(self, nums1: List[int], m: int, nums2: List[int], n: int) -> None: """ Do not return anything, modify nums1 in-place instead. """ last = m + n - 1 while m > 0 and n > 0 : if nums1[m-1] > nums2[n-1]: nums1[last]=nums1[m-1] m -= 1 else: nums1[last]=nums2[n-1] n -=1 last -= 1 while m == 0 and n > 0: nums1[last]=nums2[n-1] n -= 1 last -= 1 # No need to handle remaining elements of nums1 because they are already in place #while m > 0 and n == 0: # nums1[last] = nums1[m-1] # m -= 1 # last -= 1 print(nums1)
@TheArcticKitten
@TheArcticKitten 3 жыл бұрын
isn't this technically a threepointer? cause of last? either way great and clear solution and explanation thanks
@gottliebuahengo1236
@gottliebuahengo1236 2 жыл бұрын
No, the other it's not. The loop variables (n & m) are iterators, not pointers.
@HarshSharma-ff3ox
@HarshSharma-ff3ox 28 күн бұрын
Thank you for such a great solution 💯
@harrisoncramer
@harrisoncramer 12 күн бұрын
Interestingly, the n value here is actually not needed, since it will always be equal to the length of the second array and can be derived. See: function mergeArrays(nums1: number[], m: number, nums2: number[]) { let target = nums1.length - 1; // Last index of first array let p1 = m - 1; // Pointer to last non-zero element in first array let p2 = nums2.length - 1; // Pointer to last element in second array while (p2 >= 0) { if (p1 >= 0 && nums1[p1] > nums2[p2]) { nums1[target] = nums1[p1]; target-- p1-- } else { nums1[target] = nums2[p2]; target-- p2-- } } };
@samandarboymurodov8941
@samandarboymurodov8941 3 жыл бұрын
very good explanation. thank you!
@mcafalchio
@mcafalchio 5 ай бұрын
I really like your solution, I was going like that but got lost in the last while. I am tottaly in favor of less weird solutions
@Eduardo-Alvarez-Hernandez
@Eduardo-Alvarez-Hernandez 25 күн бұрын
I have another solution which I believe is simpler and more elegant with the same time complexity of O(n): class Solution: def merge(self, nums1: List[int], m: int, nums2: List[int], n: int) -> None: for i in range(len(nums2)): nums1[m+i] = nums2[i] nums1.sort() Hope it helps! :)
@rafeeali8307
@rafeeali8307 21 күн бұрын
sorting is nlogn
@lileggy9553
@lileggy9553 2 жыл бұрын
Hey! Amazing and incredibly helpful video! Just wanted to point out a slight error at 5:39 m and n are not the indexes of the last value but rather they are specifying the amount of numbers in each array The code you've written is correct as the index of the last element = the total length - 1, but is not aligned if m and n were indexes themselves as instead you would have to add 1 Please correct me if I'm wrong, hope this helps out anyone confused on this bit!
@vinhnghiang1273
@vinhnghiang1273 Жыл бұрын
thank you, i was counting for several minutes to try understand what he was saying !!! I think you're right !
@hernanvelazquez1421
@hernanvelazquez1421 2 жыл бұрын
Nice and clear explanation at the begining. Thanks.
@UyenVyNguyen-r5m
@UyenVyNguyen-r5m 3 ай бұрын
very easy to understand, thanks a lot!
@Ozaki978
@Ozaki978 Жыл бұрын
Very clear and helpful explanation,thanks!
@nileshdhamanekar4545
@nileshdhamanekar4545 3 жыл бұрын
Great job explaining!
@jsarvesh
@jsarvesh 3 жыл бұрын
Excellent explanation! key example i feel for this problem is nums1 = [4,5,6] and nums2=[1,2]; also using write_pointer instead of last was super helpful while writing code
@iRYO400
@iRYO400 Жыл бұрын
Before watching the video solved it by myself, runtime was O(N*logM + log(M+N)), that's not satisfied me. Then, once I saw the picture at 3:22, I tried again and got O(M + N). Of course, if I counted in a right way
@Jakirseu
@Jakirseu 4 ай бұрын
We already checked n > 0 in the first while loop. Why we need secondary while loop with n > 0 ?
@flying-musk
@flying-musk 4 ай бұрын
Hi @NeetCode first of all, thanks for your sharing, it's clever. would like to share here one point we actually only need to go through nums2 var merge = function (nums1, m, nums2, n) { let i = m - 1; let j = n - 1; let k = m + n - 1; while (j >= 0) { if (nums1[i] >= nums2[j]) { nums1[k] = nums1[i]; i--; } else { nums1[k] = nums2[j]; j--; } k--; } // we actually only need to go through nums2 };
@varunsharma7911
@varunsharma7911 2 жыл бұрын
Hi, the algorithm does not seem to work for the latest test cases. Also the m > 0 and n > 0 instead of m >= 0 and n >= 0 seems to cause problems too because it fails to consider the last remaining indices which are 0.
@varunsharma7911
@varunsharma7911 2 жыл бұрын
Test cases it caused problems with: tc1: nums1 = [2, 0], m = 1, nums2 = [1], n = 1 tc2: nums1 = [0], m = 0, nums2 = [1], n = 1
@finitehour
@finitehour 2 жыл бұрын
Change the m >= 0 to m > 0. It will work with the latest test cases.
@osmanmusse9432
@osmanmusse9432 2 жыл бұрын
Great Explanation
@JSH1994
@JSH1994 6 ай бұрын
thank you! saving the day as always
@notTejaVyas
@notTejaVyas Ай бұрын
the fact that the zeroes at the end of the list were always exactly equivalent the length of array 2 let me just: nums1.reverse() for i in range(len(nums2)): nums1[i] = nums2[i] nums1.reverse() nums1.sort() would fall apart if they added edge cases though, especially considering that in the real world, the array length would double when i add values beyond a threshold, not extend by length(n)
@iesmatty
@iesmatty 4 ай бұрын
Thank you so much for your explanation
@andrewchen2349
@andrewchen2349 2 жыл бұрын
Thank you for this video! Yet, I think line 14 is not necessary, and line 19 can be changed to n-=1. The reason is value "last" will decrease automatically if m or n decreases by 1. I tried it, and it worked!
@aaaa-ez1ff
@aaaa-ez1ff 2 жыл бұрын
very clear explanation, could you please also add the complexity analysis? thanks.
@7inzy
@7inzy 2 жыл бұрын
Time: O(n) O(m+n) exactly. same, linear. linear while loop going thru both lists. Space: O(1). no extra space being used
@georgeli6820
@georgeli6820 2 жыл бұрын
amazing explanation! Thank you!
@Se7_7
@Se7_7 Жыл бұрын
i dont understand yet, why is there nums1[m] if m is number of element.. which is suppose to be out of bounds, since array starts counting from 0.
@Se7_7
@Se7_7 Жыл бұрын
okay, just finishing the video! yes, n-1 and m-1 is important, why is my code outter bound then!!
@echo__jyc
@echo__jyc 2 жыл бұрын
clear and simple! thanks
@moulee007
@moulee007 2 жыл бұрын
he took "last = m+n-1". thats okay but when he compared " if nums1[m] > nums2[n]" here why didnt he take " if nums1[m-1] > nums2[n-1]" like this? we have to take elements inside array right so nums1[0] will be the first element not nums1[1] . can you explain
@moulee007
@moulee007 2 жыл бұрын
sorry i didnt see the video till the end : ) my bad. he actually changed it .frustated for no reason🤣🤣🤣
@SunGod-887
@SunGod-887 2 жыл бұрын
thanks for this amazing explanation
@saikoushik7626
@saikoushik7626 Жыл бұрын
Definitely you are genius
@rafeeali8307
@rafeeali8307 21 күн бұрын
This solution is easier in my opinion "class Solution: def merge(self, nums1: List[int], m: int, nums2: List[int], n: int) -> None: """ Merges nums2 into nums1 as one sorted array in-place. """ # Set pointers for nums1 and nums2 i = m - 1 # Pointer for nums1 j = n - 1 # Pointer for nums2 sortedIndex = n + m - 1 # Pointer for where the merged number goes # Iterate from the back and fill nums1 from the largest values while j >= 0: if i >= 0 and nums1[i] > nums2[j]: nums1[sortedIndex] = nums1[i] i -= 1 else: nums1[sortedIndex] = nums2[j] j -= 1 sortedIndex -= 1 "
@chicmac10
@chicmac10 Жыл бұрын
class Solution(object): def merge(self, nums1, m, nums2, n): nums1[m:] = nums2[:n] nums1.sort()
@ganeshmurugan5498
@ganeshmurugan5498 3 жыл бұрын
9:19 why we have to update the pointer n, last = n - 1, last - 1 without this line leetcode says time exceeded why
@raahim88991
@raahim88991 3 жыл бұрын
If we dont do this loop will continue to run forever
@ganeshmurugan5498
@ganeshmurugan5498 3 жыл бұрын
@@raahim88991 thanks
@harunguven8581
@harunguven8581 Жыл бұрын
A little correction m and n is the length of nums1 and nums2, not last element's index. Thanks for great explanation.
@krishnajoshi364
@krishnajoshi364 2 жыл бұрын
Thank you :) I had a question. If nums1 was not large enough to accommodate both arrays then in that case this would have become merge part of merge & sort algorithm. In that case would it have been better to append the remaining elements at nums1 or create a new empty array and put the sorted elements in that?
@davinmercier2895
@davinmercier2895 8 ай бұрын
I think it is because the fastest sorting algorithm is O(N × log N). The goal is to get O(N).
@siddheshmhatre2811
@siddheshmhatre2811 8 ай бұрын
# simple and optimal j = 0 for i in range(len(nums1)): if nums1[i] == 0 and j < n: nums1[i] = nums2[j] j += 1 nums1.sort() nums1
@andre-ur6lf
@andre-ur6lf Ай бұрын
what if nums2 values are smaller than nums1? is it still efficient to start adding the numbers from back to front?
@eloscvr
@eloscvr 3 жыл бұрын
C++ shortcut: class Solution { public: void merge(vector& nums1, int m, vector& nums2, int n) { for(int i = 0; i
@sajramkisho9991
@sajramkisho9991 2 жыл бұрын
O(NlogN) time complexity by the way ....
@adityadhikle9473
@adityadhikle9473 Жыл бұрын
When you recorded this video Likes : 2972, Dislikes: 4690. Now when I'm commenting Likes: 8067 Dislikes: 715. Such a turn around.
@jacksblue
@jacksblue 11 ай бұрын
In my solution, I just copied the the numbers from the second array into the first array where the 0s are. The I used Insertion Sort to sort the array but I think this is better
@sunnyarora3557
@sunnyarora3557 9 ай бұрын
lol same
@37zaidkhan29
@37zaidkhan29 2 жыл бұрын
Good Explanation bro
@UddhikaIshara
@UddhikaIshara 11 ай бұрын
Thank you very much 🤩
@gehadhisham2539
@gehadhisham2539 3 жыл бұрын
Wow, thank you
@sanooosai
@sanooosai Ай бұрын
thank you sir
@JohnDoe19754
@JohnDoe19754 3 жыл бұрын
Thank you so much
@nikhilgoyal007
@nikhilgoyal007 Жыл бұрын
Line 18 in the end should say nums1[last] = nums2[n-1] , no ?
@harshverm776
@harshverm776 9 ай бұрын
Thanks !!!
@divyam1175
@divyam1175 3 күн бұрын
why u write nums1[m] ?? should not it be nums1[m-1]?? 6:50
@Shanky_17
@Shanky_17 3 жыл бұрын
why cant i iterate over list 1 and insert list 2 nodes whenever the situation agrees ?and also modifying list 1 at the same time ?
@andyzhang6965
@andyzhang6965 3 жыл бұрын
I think this solution would be O(n^2). You are iterating through list 1 (O(n)), then you are inserting when the situation agrees (O(n) to use insert in python). O(n) * O(n) = O(n^2)
@Shanky_17
@Shanky_17 3 жыл бұрын
@@andyzhang6965 oh ! got it mate thanks :)
@studyaccount794
@studyaccount794 2 жыл бұрын
Looks like leetcode removed the dislikes from this problem. It has only 583 dislikes now.
@azijulmunsi5888
@azijulmunsi5888 11 ай бұрын
can anyone explain me last line of code? would not while loop also work for the leftovers too? just like 3,2 swapping position ?
@solo-angel
@solo-angel Жыл бұрын
class Solution(object): def merge(self, nums1, m, nums2, n): last = m + n - 1 while m > 0 and n > 0: if nums1[m-1] > nums2[n-1]: nums1[last] = nums1[m-1] m -= 1 else: nums1[last] = nums2[n-1] n -= 1 last -= 1 while n > 0: nums1[last] = nums2[n-1] n -= 1 last -= 1
@medakremlakhdhar419
@medakremlakhdhar419 15 күн бұрын
Why not just put the nums2 inside nums1 and sort the array ? wouldn't that be much easier ?
@shleebeez
@shleebeez 2 жыл бұрын
which section is this under on the site? i'm not seeing it
@ssuriset
@ssuriset 4 ай бұрын
If this is supposed to be "easy" I am fucked
@tatsuya370
@tatsuya370 3 жыл бұрын
Nice explanation, do u have discord?
@hasanenesturan5936
@hasanenesturan5936 2 ай бұрын
Its not that hard You can do just for j in range(n): nums1[m+j] = nums2[j] nums1.sort() thats all nums1[m+j] meaning fourth element or after the elements of nums1 you are adding to that empty space the first element of nums2 and the others after that just sorting the array.
@Desmond-yd7ld
@Desmond-yd7ld Ай бұрын
Here, time complexity would be O(nlogn) but the approach in the video has linear time O(n) complexity and uses constant space.
@MrGermanChe
@MrGermanChe Жыл бұрын
how about this solution? : def mergeSortedArray( lst1 :list, lst2 :list) -> list : return [item for element in list(zip(lst1,lst2)) for item in element]
@IwoGda
@IwoGda 10 ай бұрын
1. In this problem you're not supposed to return anything (should be done in-place) 2. It's O(n) additional memory (like first solution in video) couse you're making a list in memory with list comprehension. 3. I do not think your list is sorted On the other note, you have to think about memory while using list comprehensions becouse they are stored there. Generators store only one value at a time so sometimes it's better to use those.
@rajarajan1338
@rajarajan1338 8 ай бұрын
for i in range(n): nums1[m+i] = nums2[i] nums1.sort()
@RafiqulIslam-je4zy
@RafiqulIslam-je4zy 2 жыл бұрын
void merge(vector& nums1, int m, vector& nums2, int n) { for(int i=m;i
@TheJanstyler
@TheJanstyler Жыл бұрын
Higher time complexity. Sort is O(nlogn). This one is O(n+m).
@jamescoughlin6357
@jamescoughlin6357 9 ай бұрын
I don't understand, I think im going to have to watch this like three times in a row
@Rohitsingh2410
@Rohitsingh2410 9 ай бұрын
Why start from back?
@akagamishanks7991
@akagamishanks7991 Жыл бұрын
Amazing explaination, but how is this an easy problem?
@akshaibaruah1720
@akshaibaruah1720 2 жыл бұрын
great!
@oqant0424
@oqant0424 2 жыл бұрын
thanks
@Arunak13203
@Arunak13203 8 ай бұрын
class Solution: def merge(self, nums1: List[int], m: int, nums2: List[int], n: int) -> None: nums1.sort() index=0 if n>0: for i in range(0,len(nums1)): if nums1[i]==0: nums1[i]=nums2[index] index+=1 if index==n: break nums1.sort() return nums1 Accepted ✅
@vishnunarayanan4397
@vishnunarayanan4397 Жыл бұрын
Can we merge it from the beginning ?
@sameerkrbhardwaj7439
@sameerkrbhardwaj7439 Жыл бұрын
don't do that you have to manage much corner cases and you have to write too many cases.
@amulyagunturu3816
@amulyagunturu3816 Ай бұрын
How two 2 came you compares 1 and 2 at first 1 is min so we inserted 1 next 2,5 2 is min but next how 2 came
@edwardteach2
@edwardteach2 3 жыл бұрын
U a God
@hippybonus
@hippybonus 2 жыл бұрын
Can we put array2 into the end of array1 and use the sort() function? Like this: for i in range(n): nums1[m+i] = nums2[i] nums1.sort()
@clashgamers4072
@clashgamers4072 2 жыл бұрын
O(nlogn) for sorting
@ritchievales
@ritchievales 2 жыл бұрын
I did this in Java and it takes only 2ms in solve all the testcases however I think this problem is meant to use a two pointer approach
@ankurrawat5156
@ankurrawat5156 2 жыл бұрын
simple java solution below.. class Solution { public void merge(int[] nums1, int m, int[] nums2, int n) { int j=0; for(int i=m;i
@kuno6725
@kuno6725 2 жыл бұрын
Won’t that not have runtime of O(m + n)
@matthewzarate8851
@matthewzarate8851 2 жыл бұрын
Lol, not easy.
@sabu4539
@sabu4539 6 ай бұрын
yeah its not, without using sort().
@formulaintuition8756
@formulaintuition8756 3 жыл бұрын
Just add nums2 to the empty slots in nums1, then sort nums1.
@KillerMindawg
@KillerMindawg 3 жыл бұрын
sorting is O(nlogn)
@BTS__Army18
@BTS__Army18 10 ай бұрын
Getting an error in line 2
@roshanzameer5020
@roshanzameer5020 2 жыл бұрын
Well, this isn't really a Easy problem.
@nguyentuan1990
@nguyentuan1990 2 ай бұрын
how can this problem be easy?
@gopalchavan306
@gopalchavan306 2 жыл бұрын
nice
@FactFinders-of3mu
@FactFinders-of3mu Ай бұрын
smart
@sleepypanda7172
@sleepypanda7172 2 жыл бұрын
🤯🤯🤯🤯🤯🤯thanksssssssss
@RN-jo8zt
@RN-jo8zt Жыл бұрын
it's medium level probkem
@rishabhsharma9719
@rishabhsharma9719 2 жыл бұрын
Can We can also do this by using merge sort?
@NeetCode
@NeetCode 2 жыл бұрын
I think we can, but the time complexity would be worse since merge sort is O(nlogn)
@vxcx1869
@vxcx1869 6 ай бұрын
How can this be considered easy for god sake 💀
@Momentum_animation
@Momentum_animation 4 ай бұрын
Yoo wanna be leetcode buddies 😂😂😭,I hope we aren't cooked
@akagamishanks7991
@akagamishanks7991 Жыл бұрын
last = m + n - 1 don't make any sense to me bc m ist the index of last value of nums1 and n is the index of last value auf nums2. So considering the example from the vid m would be 2 and n would also be 2. So 2+2=4 which is not the last index of m
@kngcrisp3265
@kngcrisp3265 11 ай бұрын
M and n are not index values
@jeffnguyen91
@jeffnguyen91 3 жыл бұрын
What's the difference of this and merge two sorted lists? (kzbin.info/www/bejne/jnrHmpqhbpppq5I) I thought arrays in Python are called lists?
@NeetCode
@NeetCode 3 жыл бұрын
Yeah, arrays in python are called lists, but the merge two sorted lists video is about Linked lists. The name does make it confusing, sorry about that.
@Everafterbreak_
@Everafterbreak_ 25 күн бұрын
i've solved hard ones easier than this one
@rafeeali8307
@rafeeali8307 21 күн бұрын
fr this fucked up my head, at first I thought it would be an easy merge problem like in merge sort
Merge Sorted Arrays Without Extra Space | 2 Optimal Solution
32:47
take U forward
Рет қаралды 198 М.
Merge Sorted Array - Leetcode 88 - Arrays & Strings (Python)
6:08
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 269 МЛН
SHAPALAQ 6 серия / 3 часть #aminkavitaminka #aminak #aminokka #расулшоу
00:59
Аминка Витаминка
Рет қаралды 2,3 МЛН
Sort an Array - Leetcode 912 - Python
17:13
NeetCodeIO
Рет қаралды 39 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 311 М.
Big-O Notation - For Coding Interviews
20:38
NeetCode
Рет қаралды 482 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 814 М.
LeetCode was HARD until I Learned these 15 Patterns
13:00
Ashish Pratap Singh
Рет қаралды 397 М.
Merge Sorted Array | Leet code 88 | Theory explained + Python code
16:12
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 565 М.
Climbing Stairs - Dynamic Programming - Leetcode 70 - Python
18:08
Minimum Increment to Make Array Unique - Leetcode 945 - Python
16:20
Stereo Madness in Every Difficulty
9:30
test
Рет қаралды 33 М.