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
3 жыл бұрын
the fact that you just handle a new programmer/coder generation by yourself is really crazyy bro
@jaylordjl6337
3 жыл бұрын
Whoaaa how did ya do that simply :( ☺️
@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
3 жыл бұрын
Teach about ai
@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.
@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!!
@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!
@grecha6322
3 жыл бұрын
I can`t believe that exists the guy who has knowledges of all Indian tutorials and he can explain it so aesthetically well. Keep it up! With love from Moscow
@dumdumbringgumgum2940
2 жыл бұрын
Are you saying we don't explain in an aesthetically well manner?? I'm taking offence to that.. jk 🤣 love from India.
@synacktra
2 жыл бұрын
@@NexushasTaken I am Indian, and I agree with you 🤣
@Doraemi48
2 жыл бұрын
@@synacktra why bro
@Doraemi48
2 жыл бұрын
@@NexushasTaken what's so annoying about our accent? I find it sweet and it varies from person to person
@2clau
Жыл бұрын
@@Doraemi48 it's not the accent, it's all the Tamil interjections that throw me off.
@bryanlee5522
Жыл бұрын
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.
@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!
@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!
@Chris-cc6jq
12 күн бұрын
ive used all of you example videos to finally understand what a learned in another that class. Thank you!!
@domss3931
2 жыл бұрын
You won the quicksort explanation game my dude, well done. I finally got it, THANK YOU 👏
@pranavkumar2030
3 жыл бұрын
Such a good explainer and gem of youtube. I will constantly support your videos bro! Kudos for all your efforts.
@dragon37786
8 ай бұрын
Finally, video without skipping recursive parts where are only two elements, now everything is much more clear, thank you.
@sapokee2830
Жыл бұрын
Thanks so much. This algorithm has been the bane of my existence for way too long, and I finally get it now.
@Anas-qh3hk
6 ай бұрын
I've never been this grateful to anyone before
@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
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!!!!!
@Nik-rh3xl
6 ай бұрын
This is the best video i have seen so far. Straight to the point. Very helpful, Keep up the hard work
@hernanphillip334
7 ай бұрын
Wow, this has been the best video that i have found about this topic
@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.
@jammandu
3 жыл бұрын
Love this channel growing!
@livghit
2 жыл бұрын
My man is better than any university prof XD
@saadkhan-ku8bl
3 жыл бұрын
Finally some quality content, easy to understand, Thanks!
@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
@vampire_catgirl
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
@1mmunity18
3 жыл бұрын
This is so cool and clear! Good job on the video!
@thatlastborn
2 ай бұрын
I understand the concept, but not the code for some reason. Do I need to learn something beforehand?
@user-rs5qf9my8n
9 ай бұрын
thanks bro needed this for my college quiz very helpful
@renatocampos3502
2 жыл бұрын
You're a monster Bro!! That was amazing explanation about this topic. Keep it up! Thanks for sharing with us!
@anickkhan
2 жыл бұрын
Best explanation I have found till date. I cannot thank you enough.
@notdumb3182
2 жыл бұрын
This is the best explaination of quicksort ever made ♥️♥️♥️
@kathykaikai7152
3 жыл бұрын
You're a legend!
@sallaklamhayyen9876
5 ай бұрын
Wow brilliant explanation .thank you so much
@genevievebennett8983
3 жыл бұрын
I haven't even watched it but it still deserves a like
@brenooliveira6669
3 жыл бұрын
Hey bro please continue to do this serie, is very helpful. You are a great teacher. Hello from Brazil!
@АйсуКазымова-в4т
2 жыл бұрын
Thank you bro, now I understand algorithms, you teach better than in university ❤
@flopani5059
8 ай бұрын
Awesome explanation and useful animation!
@haiderzia1238
8 ай бұрын
Really good video.Understanding the content was really easy and fun.Thanks alot ❤.
@yushchenkoalexey
2 жыл бұрын
That was awesome and easy to understand explanation! Thank you so much!
@hoatranminh5216
Жыл бұрын
Thank you so much Bro, your Tutorial help me so much in learning code. Hope many success come to you, Bro
@Star_Jewel_Realm
5 ай бұрын
Nice. Good work. 😊
@pv2930
Жыл бұрын
U made itvery easy to understand..thank you so much 😊
@bibekkumarpanda4388
10 ай бұрын
Great explanation!
@zzkaiz8883
2 жыл бұрын
can you do about Binary Tree ?
@luislla3142
Жыл бұрын
Bro! Amazing job. Thank you
@itc-0076
9 ай бұрын
Is there a video that explain how he calculate the time and space complexity ?
@jasper5016
11 ай бұрын
You are a savior!
@neelsoni13062
Жыл бұрын
Perfect Amazing
@diya1427
11 ай бұрын
Looked at many videos, didn't find such a good explanation when the pivot is = r
@mrmemes5
3 жыл бұрын
Bro this is really awesome
@HarrisonGao
Ай бұрын
man you are my hero
@srishtipandey6782
3 ай бұрын
if in the 1st pass, (time > 3:19) i = 0 and pivot or j = 5; would the swap had happened?
@aritrakumar093
Ай бұрын
you are the best!!!!
@harshithramsundararaman6943
5 ай бұрын
thank you so much!!!
@Snowmanver2
2 жыл бұрын
thank you, bro, you're the best!
@rezamqds5161
5 ай бұрын
Perfect 👍
@TheKr0ckeR
Жыл бұрын
What would happen if the first element at the start is lower than pivot? Then since we increase i first, i & j would be same so that it will swap the same value?
@matissjansons8789
9 ай бұрын
this method is inaccurate. check: Quicksort In Python Explained (With Example And Code). everything will work.
@wellwellwelI
Жыл бұрын
thank you for explaining this to my dumb ass brain. finally understood it clearer
@yamenchams5047
5 ай бұрын
i dont get it why do you have end -1 in the for loop. We do the end -1 when we call the quicksort method
@janneskleinau6332
8 ай бұрын
thank you so much
@xyzsince
Ай бұрын
Whenever i study Quick Sort, i completely forget the what it is after a while. Too complicated to memorise.
@tien556
7 ай бұрын
Best❤❤❤
@acecool1715
11 ай бұрын
Thank you
@sMicrosoft
3 ай бұрын
if I choose the pivot at the begining where do i put my j and i?
@arimine1482
3 ай бұрын
thank you
@ronenfe
8 ай бұрын
Missing explanation of complexity calculations
@vorroma
3 ай бұрын
it took me 2 days 4 hours total to understand it is that normal or do I have a problem?
@sonalimondal3458
2 ай бұрын
I also took this much time
@JK-de2gh
2 ай бұрын
us bro us🤝
@conde3915
11 ай бұрын
thanks
@ujjawalk6780
3 жыл бұрын
Loved it
@BroCodez
3 жыл бұрын
thanks UjjawalK!
@ujjawalk6780
3 жыл бұрын
@@BroCodez hey bro why the video is not showing in the videos section
@lowen869
Жыл бұрын
ARE U GOD OF CS
@tobiOooOooOoOooOo
9 ай бұрын
this is bubble sort?
@gokul5582
5 ай бұрын
Bro first you are finding pivot value. Then you are just calling quicksort method for recursion .Only the partition method has the conditions then how it works?
@ignorethenameplis
3 жыл бұрын
assembly tutorial when
@BroCodez
3 жыл бұрын
idk
@ignorethenameplis
3 жыл бұрын
@@BroCodez oke
@amiralirez9374
3 жыл бұрын
there is three haters among us 💀 Great video by the way👍
@LawrenceIngram-e4v
27 күн бұрын
Ledner Forge
@hawns3212
6 ай бұрын
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
4 ай бұрын
ha-ha, so cool :) Thanks!
@jamesmulloy9870
3 ай бұрын
You can also use XOR
@sao5060
12 күн бұрын
@@jamesmulloy9870 how lol
@pothikernotes
11 күн бұрын
and in python, its just a,b = b,a
@ignaziocrocchiolo3578
10 күн бұрын
@@sao5060 a = a ^ b b = b ^ a a = a ^ b (This is the xor operator ^) Or more briefly a ^= b b ^= a a ^= b
@sho2648
9 ай бұрын
thank you so much
@user-xw6oo9pq2r
3 ай бұрын
U explained the code like nothing,it was easy
@reemoment1319
3 жыл бұрын
This dude deserve 10 million subs
@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
Жыл бұрын
Hello? I have same plan as you, would be great if we can share strategy to learn in this path
@saadshakeel6045
11 ай бұрын
It has been 1 year..! Waiting for the news haha
@ogs3721
11 ай бұрын
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
7 ай бұрын
How did it go?
@a.m.4154
7 ай бұрын
Guess it didn't go well.
@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.✌️🙏🙏
@sahu_SuMiT
5 ай бұрын
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.....❤
@irrationallymadphysicist6945
3 жыл бұрын
Thanks for the concise and clear explanation! Animation can be a pain but know that your hard work is definitely being appreciated
@theattacktitan4616
3 жыл бұрын
is this series discontinued?
@dineshkumare1750
Жыл бұрын
I understood these concepts better from this channel than I did in my 5-month DSA semester paper.
@DetCoAnimeFan
2 жыл бұрын
Yes finally, I learnt this algorithm. A big thanks for this short and concise tutorial
@seanfischler1320
Жыл бұрын
dawg your visual representations are absolutely saving me rn, love you
@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!
@checkmate8015
3 жыл бұрын
appreciate these pls also make b+ trees
@FlameShow
11 күн бұрын
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🙏🙏
@mangomango5660
Жыл бұрын
Man you are a legendary giga chad coder your explanation is so good
@samyakhp4353
Ай бұрын
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
@huyngo2u924
3 жыл бұрын
hope you will talk about radix sort, counter sort, heap sort and shell sort
@rayze8394
4 ай бұрын
Thank you, love from Indonesia! I make quicksort for linked list following your tutorial. #include struct Node{ int data; Node* next = nullptr; Node* prev = nullptr; }; struct LinkedList{ Node* head = nullptr; Node* tail = nullptr; int population = 0; void push_back(int flag){ Node* temp = new Node(); temp -> data = flag; if(head == nullptr){ head = temp; tail = temp; } else{ temp -> prev = tail; tail -> next = temp; tail = tail -> next; } population++; } void printComplete() const{ Node* current = head; for(int i = 1 ; i
@BananaMan6763
3 ай бұрын
In your demonstration on how this algorithm works for both partitions you’d put two elements in a quicksort function to put them in order, but you) also put the last element in a function even though it was in the right place. Why is this?
@youseflol3611
4 ай бұрын
I'm so grateful for this video, i finally understood Quick Sort all thanks to you thank you so much ❤❤❤
@blahdiblah2169
Жыл бұрын
Could you write a version that handles duplicates like {1,2,1,3,2}; ?
@ctluwua7695
3 жыл бұрын
hey Bro ! Can You make a video on Calendar class in Java please You will explain it properly :)
@johneagle4384
5 ай бұрын
Cool!, Really cool! It helped me understand how QS works.
@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
@cosmicchickenmarble9081
Жыл бұрын
can someone explain line 17 please? I get its purpose but I dont understand how it works.
@jiakai7254
Жыл бұрын
if i and j both start at index 0 then there is no need to increment before swapping right? so when j
@ranhaber1234
11 ай бұрын
nah i think I'll stick with the bogo sort. thanks for the tutorial anyway
Пікірлер: 304