Learn Quick Sort in 13 minutes ⚡

  Рет қаралды 435,628

Bro Code

Bro Code

Күн бұрын

Пікірлер: 334
@BroCodez
@BroCodez 3 жыл бұрын
This was the most difficult video I've ever made It almost convinced me to quit coding tutorials 😩 You should give it a like, it would motivate me 👍 public class Main{ public static void main(String args[]) { // quick sort = moves smaller elements to left of a pivot. // recursively divide array in 2 partitions // run-time complexity = Best case O(n log(n)) // Average case O(n log(n)) // Worst case O(n^2) if already sorted // space complexity = O(log(n)) due to recursion int[] array = {8, 2, 5, 3, 9, 4, 7, 6, 1}; quickSort(array, 0, array.length - 1); for(int i : array){ System.out.print(i + " "); } } private static void quickSort(int[] array, int start, int end) { if(end
@irfanhakim4617
@irfanhakim4617 3 жыл бұрын
the fact that you just handle a new programmer/coder generation by yourself is really crazyy bro
@jaylordjl6337
@jaylordjl6337 3 жыл бұрын
Whoaaa how did ya do that simply :( ☺️
@Nejad7
@Nejad7 3 жыл бұрын
Quit coding tutorials! No that was one of the best technics you ever did. That effort brought this masterpiece, thank you.
@SLIME-gx6fo
@SLIME-gx6fo 3 жыл бұрын
Teach about ai
@westmakaveli4003
@westmakaveli4003 3 жыл бұрын
If only I could smash that like bottom more than once. You really deserve the " likes " bro. Thank you for your help bro.
@derfwerd
@derfwerd 2 жыл бұрын
I quit my job as a data analyst at a big company to become a SWE. Your videos went from being a supplement to another resource to the main resource I lean on in many cases. When I crush my technical interview some time next year, I will let you know. Thanks bro. You are great at what you do and deserve all the success that comes to you.
@duonghuong5738
@duonghuong5738 Жыл бұрын
Hello? I have same plan as you, would be great if we can share strategy to learn in this path
@saadshakeel6045
@saadshakeel6045 Жыл бұрын
It has been 1 year..! Waiting for the news haha
@ogs3721
@ogs3721 Жыл бұрын
It doesn’t matter if you have crushed or not, but you tried. That’s what matters the most. If you haven’t yet, let’s try together.
@xTriplexS
@xTriplexS 11 ай бұрын
How did it go?
@a.m.4154
@a.m.4154 10 ай бұрын
Guess it didn't go well.
@hollowkaze8728
@hollowkaze8728 3 жыл бұрын
just finished ur entire java playlist and now the data structures playlist, this channel has really kept me busy this past summer and has really helped me out, never stop doing what ur doing!!
@seanfischler1320
@seanfischler1320 Жыл бұрын
dawg your visual representations are absolutely saving me rn, love you
@patrickmayer9218
@patrickmayer9218 Жыл бұрын
*i starts at -1 index, j starts at 0 index *if array[j] >= array[pivot], increment j *if array[j] < pivot, increment i and swap array[i] and array[j], then increment j *once j reaches the pivot, increment i, and swap array[i] and array[pivot] Thanks so much for making this, Bro Code, I am not exaggerating when I say this is the only video on the subject that made sense to me (without leaving out crucial details)! Your videos have helped the programming community so much!
@sahu_SuMiT
@sahu_SuMiT 9 ай бұрын
really unbelievable to have u who can put all those recursive and iteration into a movie like animation... just sitback, relax and enjoy what happens .........Awesome, truly awesome.....❤
@bryanlee5522
@bryanlee5522 2 жыл бұрын
4 minutes in, and I totally understand it now. Good job. Showing what happens each step helped. This is better than the other video I watched "explain in 4 minutes". Left my clueless. And with your video, I get it immediately.
@tubeyoueh
@tubeyoueh Жыл бұрын
Something about quicksort was just not clicking with me before I found this video. I've never gone from being so confused by a concept to understanding it so well in such a short amount of time. I never comment on youtube videos but this absolutely deserved some praise. Well done and thank you!
@austinolmsted9432
@austinolmsted9432 3 жыл бұрын
I am absolutely baffled how high quality your videos are. You make everything so easy and fun to understand and learn. Keep up the good work!
@HatzzRotmg
@HatzzRotmg 2 жыл бұрын
I have been trying to understand quicksort by so many different teachers, videos, and forums and this video finally made me understand it. Thank You!
@irrationallymadphysicist6945
@irrationallymadphysicist6945 3 жыл бұрын
Thanks for the concise and clear explanation! Animation can be a pain but know that your hard work is definitely being appreciated
@reemoment1319
@reemoment1319 3 жыл бұрын
This dude deserve 10 million subs
@sumansamanta330
@sumansamanta330 3 жыл бұрын
Bro! Hats off to you man 😍 Completed the whole playlist 😎 All the basics are now fully cleared! Those real-life examples of stacks, queues, and LinkedList were awesome and all the shorting algorithms are now crystal clear. More power to you man.✌️🙏🙏
@tmphu
@tmphu Жыл бұрын
I never found a document or video explaining the Quick Sort algorithm this easy until I came to your channel. Hey bro, you're the best professor in the internet, ever!
@princessattitude
@princessattitude 3 ай бұрын
your visualization is a life-saver
@batsy7284
@batsy7284 3 ай бұрын
The best explanation of the topic on youtube BY FAR. Dude, thank you so much, never quit doing tutorials, you're the best.
@dragon37786
@dragon37786 Жыл бұрын
Finally, video without skipping recursive parts where are only two elements, now everything is much more clear, thank you.
@_R1CK_69
@_R1CK_69 2 ай бұрын
the visualization is crazy bruh this helped me understand way better than just talking into the mic thanks so much for this ❤
@pranavkumar2030
@pranavkumar2030 3 жыл бұрын
Such a good explainer and gem of youtube. I will constantly support your videos bro! Kudos for all your efforts.
@hawns3212
@hawns3212 10 ай бұрын
Fun fact, you can swap 2 numbers without a temp variable by doing the following int a = 5; int b = 10; a = a + b; // 15 b = a - b; // 15 - 10 = 5 a = a - b; // 15 - 5 = 10 Not really useful, but a funny tip to know
@vanijatkosolomichev9452
@vanijatkosolomichev9452 7 ай бұрын
ha-ha, so cool :) Thanks!
@jamesmulloy9870
@jamesmulloy9870 7 ай бұрын
You can also use XOR
@sao5060
@sao5060 4 ай бұрын
@@jamesmulloy9870 how lol
@pothikernotes
@pothikernotes 4 ай бұрын
and in python, its just a,b = b,a
@ignaziocrocchiolo3578
@ignaziocrocchiolo3578 4 ай бұрын
​​@@sao5060 a = a ^ b b = b ^ a a = a ^ b (This is the xor operator ^) Or more briefly a ^= b b ^= a a ^= b
@SamipKC-zm3gq
@SamipKC-zm3gq 10 ай бұрын
I have never seen someone explain and code so easily....this was the best! you are the best!
@domss3931
@domss3931 3 жыл бұрын
You won the quicksort explanation game my dude, well done. I finally got it, THANK YOU 👏
@dineshkumare1750
@dineshkumare1750 Жыл бұрын
I understood these concepts better from this channel than I did in my 5-month DSA semester paper.
@salatyell
@salatyell 3 жыл бұрын
I don't usually comment on videos, but I couldn't help myself from taking my hat off to you. I'm currently reading an amazing book "Grokking algorithms", and I Just got to the part about quick Sorting, and while he explained it amazingly and I could understand the concept of it and even visualize it, he uses python on his exemples in the book, so it was extremely hard for me to come up with an implementation of the function in java, since here you can't just add and remove elements from and array like in python... So I was looking for videos that explained neatly the implementation of quick sorting in java I couldn't find any that really helped me, but then I remembered THE LEGENDARY BRO CODE! And it just clicked! Thank you so much man! My first pieces of basic programming information came from you and I am very thankful because of how concise your code is... The way you pay attention to the convention and the way you write your code elegantly in a way that is easy to read and understand... I try to implement that when I'm writing code and all thanks to you! Keep up the good work, bro!
@Sub-zero1123
@Sub-zero1123 3 жыл бұрын
I was just checking quick sort on KZbin yesterday, glad you uploaded it
@2T1R3D
@2T1R3D Жыл бұрын
This is probably the easiest way anyone has explained any algorithm to me to this day!! Thanks, bro!!
@dolamuoludare4383
@dolamuoludare4383 2 ай бұрын
Finally, I met my bus stop of understanding this concept. Thank you!. This was most definitely helpful.
@Nik-rh3xl
@Nik-rh3xl 10 ай бұрын
This is the best video i have seen so far. Straight to the point. Very helpful, Keep up the hard work
@DetCoAnimeFan
@DetCoAnimeFan 3 жыл бұрын
Yes finally, I learnt this algorithm. A big thanks for this short and concise tutorial
@4EverH0me
@4EverH0me 2 жыл бұрын
This is my first comment ever and I really wanted to THANK YOU a lot. You are a great teacher. I am really appreciating your work. Thank you.
@abhishekdev5251
@abhishekdev5251 8 ай бұрын
I never understood Quicksort this easily until today. Exactly what I needed!
@jammandu
@jammandu 3 жыл бұрын
Love this channel growing!
@jp-hh9xq
@jp-hh9xq 2 жыл бұрын
Yeah, Bravo!! I have watched a dozen videos on QuickSort. I use it every day as a developer, but this video is the best to explain it to yourself or others, in why you made a particular design decision or not. I pick my partitions carefully, and for just the reasons stated in this video. This video helps me to explain to others why I made the decisions I did!!! Thanks!
@jp-hh9xq
@jp-hh9xq 2 жыл бұрын
After reading your comment above, I just want to say, seriously, dozens of videos, I watched on the topic and this is by FARRRRRRRRRRRR the BEST! This is what people want to see, they just don't know it yet. Keep up the good work!!!!!
@aymaneeljahrani2280
@aymaneeljahrani2280 6 ай бұрын
The visuals made me understand everything so quickly. Thanks for the quality
@Chris-cc6jq
@Chris-cc6jq 4 ай бұрын
ive used all of you example videos to finally understand what a learned in another that class. Thank you!!
@saadkhan-ku8bl
@saadkhan-ku8bl 3 жыл бұрын
Finally some quality content, easy to understand, Thanks!
@mangomango5660
@mangomango5660 Жыл бұрын
Man you are a legendary giga chad coder your explanation is so good
@sapokee2830
@sapokee2830 Жыл бұрын
Thanks so much. This algorithm has been the bane of my existence for way too long, and I finally get it now.
@jeffisded1222
@jeffisded1222 9 ай бұрын
The way you implemented quicksort is much better than the other method I found. The other method has this stupid edge-case I can't wrap my head around. Thanks :)
@aliyanshaikh1547
@aliyanshaikh1547 Жыл бұрын
Finally someone who explains quicksort nicely. Thanks so much bro
@boing120
@boing120 Жыл бұрын
You're the best bro. The writing code with narration section is insanely helpful
@Anas-qh3hk
@Anas-qh3hk 10 ай бұрын
I've never been this grateful to anyone before
@yagan_dawn2008
@yagan_dawn2008 8 ай бұрын
I had a task to implement the quicksort algorithm in assembly.This video helped me a lot to write the code as i could easily reference my results to yours.Thank you!(It took me around 6 hours of coding to do that lol)
@lukju6520
@lukju6520 3 жыл бұрын
This channel provides so much free information. It's just too good to be true.
@FlameShow
@FlameShow 4 ай бұрын
bro, idk how, but you made a real good visualusation for quicksort, it really goes easy with you, it's not the first time when you helping me or other folks, ty bro, we appreciate you, such a legend🙏🙏
@giaminhpham2281
@giaminhpham2281 3 жыл бұрын
This is the first time I understand quicksort, thank you
@ManlyMango
@ManlyMango 10 ай бұрын
Wow really good job! I love the visualization you did and appreciate that you finished out the array to firmly sitck the lesson in mind. Thank you!
@whipyyy
@whipyyy 3 жыл бұрын
thx bro, you are a life saver!!! keep up the good content and you have my total support! thx a lot. cheers
@alexblats
@alexblats Жыл бұрын
Man i qas trying a whole day to understamd quick sort and now i understood in almost 15 min! You are a legend
@lightfernandez8484
@lightfernandez8484 2 жыл бұрын
the best video on youtube to understand quicksort .
@anickkhan
@anickkhan 3 жыл бұрын
Best explanation I have found till date. I cannot thank you enough.
@GhostShadow.0316
@GhostShadow.0316 2 ай бұрын
This is the best tutorial I've seen of quicksort
@1mmunity18
@1mmunity18 3 жыл бұрын
This is so cool and clear! Good job on the video!
@floflo1645
@floflo1645 Жыл бұрын
Writting this myself relying only on your explanation and demonstration but not looking at your code was a pain in the ass but I managed to do it !!! 💪 I am feeling a little bit smarter now lol
@renatocampos3502
@renatocampos3502 2 жыл бұрын
You're a monster Bro!! That was amazing explanation about this topic. Keep it up! Thanks for sharing with us!
@RoronoaShu27
@RoronoaShu27 Жыл бұрын
You are saving lives Bro,please continue your hard work. Sorting algorithm is very difficult to explain, you handle it like a Pro Bro
@livghit
@livghit 2 жыл бұрын
My man is better than any university prof XD
@vgiglia
@vgiglia Ай бұрын
Best explanation I've found so far :D
@magl1003
@magl1003 3 жыл бұрын
Thank you for the videos. They are extremely helpful. Right now, I'm taking Java classes but I rely on your videos to learn the concepts. I'm still a beginner but you have taught me a lot so far.
@ShAerMusic
@ShAerMusic 29 күн бұрын
Absolutely BEST CASE explanation
@lukhanyokalashe1906
@lukhanyokalashe1906 Жыл бұрын
Bro given this is a difficult topic, i now undersatnd it very well and i couldnt wrap me heard around the recurvive call and how the array is partitioned only, seeing the method signature and how you well explain this. Thank you so much never stop helping us younger generation. Thank God to your C# TUTORIALS i passed my firtst year 2023 and now im able to understand data structures and algorithms in Java. Thank you Man may God Bless you. Your Fellow Bro from SOUTH AFRICA🤗❤za
@lukhanyokalashe1906
@lukhanyokalashe1906 Жыл бұрын
i was struggling with recursion but you helped me understand it better !!
@Neko_Necromancer
@Neko_Necromancer 2 жыл бұрын
I watched up to the end of the visual explanation, which was very helpful and good by the way. Now I'm going to try and code it myself before watching how you code it
@shaswatachowdhury9032
@shaswatachowdhury9032 Жыл бұрын
Amazing tutorial! Keep educating all of us like this ! I loved it. So elegantly and smoothly done..❤
@سيمفوني
@سيمفوني Жыл бұрын
Love it love it love it frrrr like I couldn't understand this at all from many videos but this made it so easy for me thankkkkss!!!
@user-rs5qf9my8n
@user-rs5qf9my8n Жыл бұрын
thanks bro needed this for my college quiz very helpful
@arkojitdas3286
@arkojitdas3286 2 ай бұрын
bro u earned my respect ......😁❤thanks for explaning it
@Leo-ld6se
@Leo-ld6se Жыл бұрын
im grateful for these vids, i have a book about algorithms and data structure but i cant understand a word. your vids are so easy to digest and very helpful toward beginner like me
@madhavanrao3626
@madhavanrao3626 2 жыл бұрын
Thanks a lot for this explanation... You are definitely the best java teacher...please continue creating more java algorithms...👏👏👏
@BigSupercast
@BigSupercast 3 ай бұрын
This is the best explanations Ive seen
@one111won
@one111won Жыл бұрын
Your visual explanation is on point!!
@octopudding
@octopudding 2 жыл бұрын
so happy to always find what im looking for here! thank you so much!
@fruko3164
@fruko3164 Жыл бұрын
This is the best quick sort video I have ever seen
@hernanphillip334
@hernanphillip334 10 ай бұрын
Wow, this has been the best video that i have found about this topic
@nipsonk.c.7638
@nipsonk.c.7638 8 күн бұрын
Hey man , continue what you are doing. Its really great
@jx2pd
@jx2pd Жыл бұрын
the best quick sort tutorial!! I don't even use Java, but I understood with this explanation. Thank you
@nikilnikki18
@nikilnikki18 2 жыл бұрын
Seriously words cannot explain the efforts u have put in for us !! I'm 18 I'm from India U are helping me so much 💕 thanks bro
@flopani5059
@flopani5059 Жыл бұрын
Awesome explanation and useful animation!
@notdumb3182
@notdumb3182 2 жыл бұрын
This is the best explaination of quicksort ever made ♥️♥️♥️
@MrPipero96
@MrPipero96 15 күн бұрын
amazing explanations and visuals, thank you
@EmdaKidmit
@EmdaKidmit 2 жыл бұрын
The best explanation in the youtube world Thank you very much bro
@yushchenkoalexey
@yushchenkoalexey 2 жыл бұрын
That was awesome and easy to understand explanation! Thank you so much!
@inhhai6773
@inhhai6773 3 жыл бұрын
I found quicksort really confusing until I watched this video. Thanks a lot bro, I hope you make more videos.
@jontodt6959
@jontodt6959 Ай бұрын
The best explanation in youtube
@haiderzia1238
@haiderzia1238 Жыл бұрын
Really good video.Understanding the content was really easy and fun.Thanks alot ❤.
@RicardoVargasM
@RicardoVargasM 10 ай бұрын
You are programming Jedi Master. I appreciate it
@brenooliveira6669
@brenooliveira6669 3 жыл бұрын
Hey bro please continue to do this serie, is very helpful. You are a great teacher. Hello from Brazil!
@dominiknowak3613
@dominiknowak3613 10 ай бұрын
Great job. You explained it well. Good visualisation.
@rishiksaisanthosh3171
@rishiksaisanthosh3171 Жыл бұрын
Thanks bro after watching your i understood the logic more clear.The way you explain algorithms by dry run is excellent
@youseflol3611
@youseflol3611 8 ай бұрын
I'm so grateful for this video, i finally understood Quick Sort all thanks to you thank you so much ❤❤❤
@محمدالانصاري-ث9ط
@محمدالانصاري-ث9ط Ай бұрын
thank you so much i love your channel the way how you explain and talk, thank you sooooo muchhhhhhh. i hope if i can support you financially. I really thank you
@adibahbab6859
@adibahbab6859 2 жыл бұрын
Amazingly explained bro! Thanks.
@fact__slap
@fact__slap Жыл бұрын
love the background music, its awesome bro
@kelvin4833
@kelvin4833 2 жыл бұрын
love these visual representations
@kathykaikai7152
@kathykaikai7152 3 жыл бұрын
You're a legend!
@samyakhp4353
@samyakhp4353 5 ай бұрын
love your videos and style of explain, it would be fantastic if you came up with : 1. Full DSA course in python 2. Full MERN stack course/play list 3. Golang tutorial 4. System Design and DBMS course this will complete everything regarding software development on your channel. thanks for helping me and millions of others like me
@niccolosea
@niccolosea Ай бұрын
You truly are like BRO to programmers, BROOOO
@jananishetty8353
@jananishetty8353 Жыл бұрын
Amazing explanation, very easy to understand.
@АйсуКазымова-в4т
@АйсуКазымова-в4т 2 жыл бұрын
Thank you bro, now I understand algorithms, you teach better than in university ❤
@boyar3033
@boyar3033 22 күн бұрын
Thank you for doing this !
@عليالعصفوري-ط4ض
@عليالعصفوري-ط4ض 13 күн бұрын
it can be array[j]
Learn Hash Tables in 13 minutes #️⃣
13:26
Bro Code
Рет қаралды 414 М.
Learn Merge Sort in 13 minutes 🔪
13:45
Bro Code
Рет қаралды 375 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
Quicksort Sort Algorithm in Java - Full Tutorial With Source
24:58
Coding with John
Рет қаралды 258 М.
Explaining EVERY Sorting Algorithm (part 1)
35:35
Kuvina Saydaki
Рет қаралды 178 М.
Quicksort In Python Explained (With Example And Code)
14:13
FelixTechTips
Рет қаралды 164 М.
Quicksort: Partitioning an array
4:48
KC Ang
Рет қаралды 599 М.
3 Types of Algorithms Every Programmer Needs to Know
13:12
ForrestKnight
Рет қаралды 522 М.
2.8.1  QuickSort Algorithm
13:43
Abdul Bari
Рет қаралды 3,4 МЛН
Learn Linked Lists in 13 minutes 🔗
13:24
Bro Code
Рет қаралды 385 М.
Learn Selection Sort in 8 minutes 🔦
8:21
Bro Code
Рет қаралды 293 М.
Big-O Notation - For Coding Interviews
20:38
NeetCode
Рет қаралды 554 М.
The Quicksort Sorting Algorithm: Pick A Pivot, Partition, & Recurse
26:31
Back To Back SWE
Рет қаралды 166 М.