Quick Sort super easy explanation with animations and example | Full implementation and code

  Рет қаралды 4,881

Nikhil Lohia

Nikhil Lohia

Күн бұрын

Quick Sort is a really popular but at the same time a little tricky algorithm to perform sorting. It is used extensively so that your code runs faster. Quick Sort uses Recursion and the Divide and Conquer algorithmic paradigm. As per the name, this method should be very quick. But what makes it so fast? What is happening behind the scenes. In this video I perform a live demo to show that to you, and then do a step by step walkthrough of the code to do a dry-run. This way the concept will stay in your mind forever.
00:00 - Intro
01:40 - Advantages of Quick Sort
03:00 - Live Demo of Quick Sort
11:00 - Actual implementation and dry-run
17:46 - Final thoughts
My favorite book on Introduction To Algorithms: amzn.to/35RrVuK
📚 Links I talk about in the video:
Bubble Sort: • Bubble Sort Algorithm ...
Insertion Sort: • Insertion Sort visuali...
Selection Sort: • Selection Sort | Live ...
Divide and Conquer Algorithm: • Divide and Conquer alg...
Recursion Algorithms: • Recursion paradigms wi...
📘 A text based explanation is available at: studyalgorithms.com/array/qui...
Code on Github: github.com/nikoo28/java-solut...
Test cases: github.com/nikoo28/java-solut...
🔗 To see more videos like this, you can show your support on: www.buymeacoffee.com/studyalg...
💻 Get Social 💻
Follow on Facebook at: / studyalgos
Follow on Twitter at: / studyalgorithms
Follow on Tumblr at: / studyalgos
Subscribe to RSS feeds: studyalgorithms.com/feed/
Join fan mail: eepurl.com/g9Dadv
#algorithms #sorting #tutorial

Пікірлер: 17
@jarvoo69
@jarvoo69 5 ай бұрын
I spend my money in the DSA course (lol). now i am getting better understand from nikhil bhaiya
@davidhh7416
@davidhh7416 3 жыл бұрын
This is the exact great and clear step by step code explanation with array animation I was looking for!!! Can’t thank you enough!!!
@nikoo28
@nikoo28 3 жыл бұрын
Great to hear! If you really want to help out share this video with anyone you feel it would be helpful to. This certainly motivates me to make more such videos.
@samwelino
@samwelino 2 ай бұрын
Watched many videos on Quick Sort algorithm, and your video is the one of the best, thank you!
@nikoo28
@nikoo28 Ай бұрын
Glad it was helpful!
@Priyutube
@Priyutube Ай бұрын
sir your videos are always very helpful for understanding the concept keep posting new video thank you so much sir
@rohandhobale2691
@rohandhobale2691 15 күн бұрын
Good explanation
@matthewzarate8851
@matthewzarate8851 2 ай бұрын
Amazing explanation Nikhil, thanks!
@nicholasswandrak3051
@nicholasswandrak3051 9 ай бұрын
This is the video that I needed. Explained it very well and helped me out so much. Thank you!!
@nikoo28
@nikoo28 9 ай бұрын
You are so welcome!
@sumitbabel5415
@sumitbabel5415 3 жыл бұрын
Really explained in an exceptionally well manner, your effort and explanation is really respectable and commendable.God Bless dude
@nikoo28
@nikoo28 3 жыл бұрын
You are most welcome
@something......something3844
@something......something3844 Жыл бұрын
Bro, this is the best explanation on quick sort bro. Thank you
@nikoo28
@nikoo28 Жыл бұрын
So delighted to hear that
@irakeshdeka
@irakeshdeka 2 жыл бұрын
Thanks Nikhil ❤️.
@pranaym143
@pranaym143 3 жыл бұрын
Thumbnail is dope
@shankar7435
@shankar7435 9 сағат бұрын
Swap (arr, i, j) should be done only when i != j. if(i != j) swap(arr, i, j); should save from some unnecessary swaps. I found an even more efficient approach. This does not make the current video any less in giving a better understanding of Quick sort. kzfaq.info/get/bejne/np6VrLxoya_Nfmg.htmlsi=IdRX8luO5JbLaFuA Both together made me understand what the Quick Sort is all about. Thanks a lot for the video.
Алексей Щербаков разнес ВДВшников
00:47
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 19 МЛН
Merge Sort with Visuals and Animations | Study Algorithms
16:38
Nikhil Lohia
Рет қаралды 4,2 М.
Easy Google Coding Interview With Ben Awad
28:00
Clément Mihailescu
Рет қаралды 1 МЛН
Learn Quick Sort in 13 minutes ⚡
13:49
Bro Code
Рет қаралды 313 М.
Quicksort Sort Algorithm in Java - Full Tutorial With Source
24:58
Coding with John
Рет қаралды 236 М.
Алексей Щербаков разнес ВДВшников
00:47