Learn Merge Sort in 13 minutes 🔪

  Рет қаралды 262,030

Bro Code

Bro Code

3 жыл бұрын

Merge sort algorithm tutorial example explained
#merge #sort #algorithm
// merge sort = recursively divide array in 2, sort, re-combine
// run-time complexity = O(n Log n)
// space complexity = O(n)
music credits 🎼:
===========================================================
Title: Wallflowers
Artist: Bad Snacks
Link: • bad snacks: KZbin Au...
===========================================================

Пікірлер: 225
@BroCodez
@BroCodez 2 жыл бұрын
This video took me THREE WEEKS to produce! Ya'll better smash that like button for me! lol public class Main{ public static void main(String args[]) { // merge sort = recursively divide array in 2, sort, re-combine // run-time complexity = O(n Log n) // space complexity = O(n) int[] array = {8, 2, 5, 3, 4, 7, 6, 1}; mergeSort(array); for(int i = 0; i < array.length; i++){ System.out.print(array[i]+ " "); } } private static void mergeSort(int[] array) { int length = array.length; if (length
@syllight9053
@syllight9053 2 жыл бұрын
Don't worry bro, I smashed the like button, plus I contacted the president to set a direct nuclear launch to the like and subscribe button as well!
@BroCodez
@BroCodez 2 жыл бұрын
@@syllight9053 Thank you Syllight!
@immortalbotyt1428
@immortalbotyt1428 2 жыл бұрын
I already did my big bro :D If we both belonged to only 1 family u would be my bigger bro :D
@aditya_asundi
@aditya_asundi 2 жыл бұрын
3 weeks making this *AND THERE'S A DISLIKE????*
@roysaka4475
@roysaka4475 2 жыл бұрын
Hi bro plsae reques Tutorial Python AndroidHelper. Music, recorder, voice mix, microfon. Call phone, game, calculator, google voice recorder, and others.. 🙏🙏🙏🙏🙏🙏 Plsee
@mayawhocodes3092
@mayawhocodes3092 Жыл бұрын
The way you broke this down into simple terms with visuals and everything, amazing. I'm not a bro, but I do code. And this was lit. Thank you.
@sancho608
@sancho608 Жыл бұрын
No. You are a bro now!!
@fsxanas90
@fsxanas90 Ай бұрын
why the karen vibe tho lmao
@johndavis29209
@johndavis29209 19 күн бұрын
@@fsxanas90 Why anything
@coltonbailey8873
@coltonbailey8873 2 жыл бұрын
You are single-handedly teaching me programming/computer science. Thank you. Never change your teaching structure, because this method works really well.
@Jathamus
@Jathamus 2 жыл бұрын
I knew when I saw "Bro Code" it would be a beautifully simple video. What you did that the other videos I watched failed to do was walk through the sort / merge in the order that it would actually happen. The other videos were doing it by rows and not the actual order that it happens in. Thank you ! That is what made it click for me. I am now subscribed !
@jorgemedina8497
@jorgemedina8497 26 күн бұрын
This is the best video I found on all youtube which explains Merge Sort properly. This video is the definition of Quality Content.
@kingipra
@kingipra Жыл бұрын
Best explanation I've seen so far. The rundown at the beginning really helps. Thank you
@smokinginthefishroom
@smokinginthefishroom Жыл бұрын
The best merge sort explanation on KZbin. Watched like 5 other videos but only this explained how the merge part of merge sort actually works! Liked and subscribed.
@raywei1701
@raywei1701 8 ай бұрын
So clear. my professor did not have enough time to go over this in class. Now I understand everything about merge sort.
@nyasha_keith_matevengwe
@nyasha_keith_matevengwe 2 жыл бұрын
You are a great tutor sir, I appreciate, I was failing to understand this all along, but just because of your video, I feel confident enough
@nyankiku5863
@nyankiku5863 Жыл бұрын
You made mergeSort look so simple and easy, thank you so much!
@murnoth
@murnoth Жыл бұрын
Trying to make these algorithms with blueprint nodes in UE5, and following along with your code is also helping me translate code jargon into blueprint equivalents. Thank you for sharing
@GamerOverThere
@GamerOverThere 9 ай бұрын
Bro, you are a legend. My professor went over merge sort for 1 1/2, and I was left confused. I watched a Harvard lecture video on it, still confused. Asked chatGPT about individual components (not to cheat but to have it explain each step to me, I want to understand this) and it was spewing nonsense. But your video made it finally click. Thanks bro! Liked and subscribed
@paulodasilvasa9884
@paulodasilvasa9884 7 ай бұрын
Thank you man!!! Finally I have found the best explanation of merge sort! You really helped us a lot. I've alredy smashed the like button, you deserve it bro!!!
@danielebbersmeyer5087
@danielebbersmeyer5087 3 ай бұрын
Probably the best video i've seen so far to explain Mergesort, i think i finally got it!
@NH-ij8dz
@NH-ij8dz 3 ай бұрын
Great video. I needed to implement this in C for a CS class and this video explained it in much clearer and easier to follow way than the so called experts who are being paid 6 figures a year to teach this to me. Ty bro.
@lingjosh6801
@lingjosh6801 2 жыл бұрын
Clearly explanation and demonstration with merge sort, great work!!! Can,t wait for more CS videos.
@aadv1k
@aadv1k 4 ай бұрын
Thank you for the beautifully elegant explanation that didn't require the viewer to have a PhD. You are one talented bro. Keep it up!
@eniax
@eniax Жыл бұрын
Best merge sort tutorial I've seen, thank you
@docjp7427
@docjp7427 6 ай бұрын
You are the best Bro I never had. 2 years have gone by, but this is still amazing.
@charalamposkatsoukis8694
@charalamposkatsoukis8694 Жыл бұрын
top content as always. No one more understandable than Bro! (I hope you doin good on your break!!!)
@nurulafsar3195
@nurulafsar3195 Жыл бұрын
Best explanation of merge sort so far!
@user-hi8qt6rq4b
@user-hi8qt6rq4b 11 ай бұрын
Good job! It is really easy to understand the algorithm with this video, thank you
@quantjet7718
@quantjet7718 5 ай бұрын
Wow you are one of the best KZbinrs to explain algorithms
@tipster360
@tipster360 11 ай бұрын
The best merge sort explanation! Thank you so much.
@Bromon655
@Bromon655 3 ай бұрын
Recursive algorithms are the bane of my existence.
@bhumikajoshi6966
@bhumikajoshi6966 2 жыл бұрын
it'd be really helpful if you continue this playlist!!! thanks in advance
@sanskarsongara2592
@sanskarsongara2592 2 жыл бұрын
Idk you sounds more confident in recent new videos, keep going homie you still gotta reach more people👍
@DruzeJosipTito
@DruzeJosipTito Жыл бұрын
You just made my computer science assignment a whole lot easier lol. Thank you.
@rizzbod
@rizzbod Жыл бұрын
Thanks man! , because of you , i can skip the tough work of learning, hehe, and straight jump into implementing algorithms
@zyad6385
@zyad6385 6 ай бұрын
After 2 years this is still very useful i understand everything now . even though i don't know how to use java i've just learned c++ but everything is clear now
@JazzInATinCan
@JazzInATinCan Жыл бұрын
Good video, not too long, not too short. Great job.
@cadmium4113
@cadmium4113 2 жыл бұрын
Started your Java playlist love your tricks to teach... Appreciate from another fellow BRO.
@aorusaki
@aorusaki 8 ай бұрын
Needed this for my interview :))) thank you!
@arturofuentes2230
@arturofuentes2230 2 ай бұрын
Great video man, I understood everything so quickly, thank you so much and keep coding bro
@doogiehowser1124
@doogiehowser1124 8 ай бұрын
Wow! this is a good tutorial. Thank you very much for taking the time to put it together! Well Done!
@neophilosophy1764
@neophilosophy1764 Ай бұрын
Nice. Thanks for the video!
@vansh9857
@vansh9857 Жыл бұрын
You earned a sub! Awesome explanation
@hannibalbianchi1466
@hannibalbianchi1466 2 жыл бұрын
No words can explain my appreciation Thank you, sir 🏆🏆🏆🏆
@mohtasimbillah6560
@mohtasimbillah6560 2 жыл бұрын
Really good explanation of merge sort! It helped heaps!
@sprinklepancake
@sprinklepancake Жыл бұрын
Thank you!! this was very thorough and clear!!
@MrWardo2009
@MrWardo2009 8 ай бұрын
Thank you so much for making this video!
@Snowmanver2
@Snowmanver2 2 жыл бұрын
a concise and helpful tutorial, thanks Bro!
@DJSaez-ll8or
@DJSaez-ll8or Ай бұрын
Really helpful video, thank you!
@Crystal-gs4gu
@Crystal-gs4gu Жыл бұрын
Thank you for saving me from my final test. You are the best teacher
@toxiclucien8168
@toxiclucien8168 2 жыл бұрын
very helpful video...watching all your sorting videos and learning from it...thanks BRO
@AntiPedophile
@AntiPedophile Жыл бұрын
thanks for these videos ,we need them alot
@quantumtea7394
@quantumtea7394 2 жыл бұрын
Thank you for your amazing videos!!!❤️❤️❤️
@josy7
@josy7 6 ай бұрын
Thanks for the content !
@radicalsaled5756
@radicalsaled5756 Жыл бұрын
nice job, simple explanation of a long algorithm
@Matthew_080
@Matthew_080 5 ай бұрын
Thanks for explaining merge sort!
@hoanganhnguyen3438
@hoanganhnguyen3438 3 ай бұрын
omg, I love the music. Good stuffs brah =)))))))))))))
@MikeSieko17
@MikeSieko17 5 ай бұрын
yo bro thanks bro, great stuff bro from one bro to another bro
@alexsecret3496
@alexsecret3496 4 ай бұрын
u are the best ,bro!
@sahu_SuMiT
@sahu_SuMiT 2 ай бұрын
awesome, as always....
@juanivillanueva7873
@juanivillanueva7873 Жыл бұрын
You are a better teacher than my dsa ones!
@sallaklamhayyen9876
@sallaklamhayyen9876 2 ай бұрын
great job = thank you so much please continue🥰
@engineeringmania9125
@engineeringmania9125 Жыл бұрын
Thanks man!!! Great video🤗
@johnxina7496
@johnxina7496 3 ай бұрын
amazingly explained
@EzraSchroeder
@EzraSchroeder Жыл бұрын
WoW! Gorgeous video! Mergesort can be hard to understand. Great, great job!
@solonton6341
@solonton6341 2 жыл бұрын
great work, well explained!
@brandonkruger9040
@brandonkruger9040 2 жыл бұрын
Thanks for another great video bro.
@jamongx1
@jamongx1 Жыл бұрын
Thanks for your explain! it's very helpful to understand!
@mike-fl9xi
@mike-fl9xi Жыл бұрын
gg bro. super helpful, nice break down
@vinayshenoy9896
@vinayshenoy9896 3 күн бұрын
very well explained, Thank you very much
@danilohonda3078
@danilohonda3078 7 ай бұрын
thanks for the class!!!!
@ashutoshswain4050
@ashutoshswain4050 Жыл бұрын
thanks a lot bro this solution and your explanation is awesome:)
@09FT9
@09FT9 2 жыл бұрын
If you ever publish a book, I'd be the first one to buy it. Excellent work, Bro. 🙏
@AN-rz7bs
@AN-rz7bs 7 ай бұрын
Thanks, this video really helped me!
@greenachos372
@greenachos372 2 жыл бұрын
Thanks for the informative video
@valioprea9796
@valioprea9796 Жыл бұрын
First of all I just wanted to let you know that thanks to your java section I landed a job as a java developer. So ...from the bottom of my heart, thank you, keep up the good work! On the other hand, a question for this video: what if the array has an odd length ?
@andrewchen861
@andrewchen861 Жыл бұрын
Great video! Now I understand it :)
@ianvensonbolanio3327
@ianvensonbolanio3327 Жыл бұрын
Thankyouuuuusomuch, your video really helps our group "MEMANG".
@scottzeta3067
@scottzeta3067 2 жыл бұрын
Thanks Bro, you are the best!
@MeditateRelaxEtcetera
@MeditateRelaxEtcetera 3 ай бұрын
That's terrific! I'm working my way thru your videos. Wish I found your channel earlier.
@sanjusaju4049
@sanjusaju4049 Жыл бұрын
The best video ever .....love u man....
@bryanswiger5888
@bryanswiger5888 Жыл бұрын
Like button smashed..... thanks bro
@ernestselman3955
@ernestselman3955 6 ай бұрын
Hey Bro Code, thanks for the video. It really helped me learn MergeSort. I have a question. In your implementation, would the memory requirements be nlog(n) or n? Since you are creating copies of the arrays as you go down recursively, that would be adding to the memory. If I make the mergeSort method by passing a reference of the original array and indexes representing the start and end of left and right subarrays, then only create the required copies in the merge method before backtracking, wouldn't the maximum memory used be the last step where we would have copies of the entire original array and therefore memory utilization would be 2n or just n?
@esmailalmoshki3506
@esmailalmoshki3506 Жыл бұрын
شغل جامد يسطى
@ironmonkey1990
@ironmonkey1990 14 сағат бұрын
Thank you !
@wmd5645
@wmd5645 2 жыл бұрын
nice. very nice. If you didnt work as a sw engineer, my professors were really as bad as i knew they were. good job.
@Ray101SPAS
@Ray101SPAS Жыл бұрын
Nice explanation. Now it does not seem so complicated.
@dangerbirb4981
@dangerbirb4981 Ай бұрын
I like your taste in music :D
@lokszeto6627
@lokszeto6627 Жыл бұрын
amazing!
@alaasefa1118
@alaasefa1118 11 ай бұрын
this the most helpful channel thank u a lot🥰🥰
@carl4416
@carl4416 5 ай бұрын
Thanks!
@childishpumpino6751
@childishpumpino6751 10 ай бұрын
Thank you brother!!!
@greeneye360k
@greeneye360k 7 күн бұрын
best explanation
@one111won
@one111won Жыл бұрын
legendary explanation
@leoniaklebanov2502
@leoniaklebanov2502 2 жыл бұрын
Awesome and simple
@fernandofigueroa5332
@fernandofigueroa5332 2 жыл бұрын
thanks for the video :)
@dylannguyen5154
@dylannguyen5154 4 ай бұрын
Lifesaver.
@rabiizahir2885
@rabiizahir2885 Жыл бұрын
Great video. Thanks
@venator7392
@venator7392 Ай бұрын
incredible
@nitinsoni9956
@nitinsoni9956 2 жыл бұрын
Hey bro thanks for the video.
@nasirbashirov
@nasirbashirov 2 жыл бұрын
Bro king👑
@Yuschova
@Yuschova 8 ай бұрын
this 13 mins vid is way better than 5hrs+ lectures xD
@muhammedelsayed.radwan
@muhammedelsayed.radwan 11 ай бұрын
Amazing 👏
@jaredshaw2967
@jaredshaw2967 Жыл бұрын
awesome explanation bro
@Jose-bq5rb
@Jose-bq5rb 28 күн бұрын
excelent video
@crabbyfeetminecraft
@crabbyfeetminecraft 2 жыл бұрын
Nice!
Learn Quick Sort in 13 minutes ⚡
13:49
Bro Code
Рет қаралды 293 М.
Recursion in Programming - Full Course
1:51:36
freeCodeCamp.org
Рет қаралды 925 М.
PINK STEERING STEERING CAR
00:31
Levsob
Рет қаралды 23 МЛН
I’m just a kid 🥹🥰 LeoNata family #shorts
00:12
LeoNata Family
Рет қаралды 15 МЛН
Stupid Barry Find Mellstroy in Escape From Prison Challenge
00:29
Garri Creative
Рет қаралды 20 МЛН
Merge Sort In Python Explained (With Example And Code)
13:35
FelixTechTips
Рет қаралды 196 М.
Why Is Merge Sort O(n * log(n))? The Really Really Long Answer.
36:50
Back To Back SWE
Рет қаралды 113 М.
Learn Selection Sort in 8 minutes 🔦
8:21
Bro Code
Рет қаралды 203 М.
Learn Recursion in 8 minutes 😵
8:19
Bro Code
Рет қаралды 69 М.
Merge Sort Algorithm in Java - Full Tutorial with Source
23:02
Coding with John
Рет қаралды 169 М.
Merge Sort Using Recursion (Theory + Complexity + Code)
49:47
Kunal Kushwaha
Рет қаралды 204 М.
Learn Binary search trees in 20 minutes 🔍
20:25
Bro Code
Рет қаралды 143 М.
Learn Hash Tables in 13 minutes #️⃣
13:26
Bro Code
Рет қаралды 321 М.
Learn Binary Search in 10 minutes 🪓
10:04
Bro Code
Рет қаралды 101 М.
iPhone 12 socket cleaning #fixit
0:30
Tamar DB (mt)
Рет қаралды 49 МЛН
После ввода кода - протирайте панель
0:18
💅🏻Айфон vs Андроид🤮
0:20
Бутылочка
Рет қаралды 683 М.
Gizli Apple Watch Özelliği😱
0:14
Safak Novruz
Рет қаралды 3,5 МЛН
#miniphone
0:16
Miniphone
Рет қаралды 3,5 МЛН