The Quicksort Sorting Algorithm: Pick A Pivot, Partition, & Recurse

  Рет қаралды 161,925

Back To Back SWE

Back To Back SWE

5 жыл бұрын

Code & Problem Statement @ backtobackswe.com/platform/co...
Free 5-Day Mini-Course: backtobackswe.com
Try Our Full Platform: backtobackswe.com/pricing
📹 Intuitive Video Explanations
🏃 Run Code As You Learn
💾 Save Progress
❓New Unseen Questions
🔎 Get All Solutions
Subscribe To Live Tech Offers: offerfeed.io
Join Our Coaching Service: backtobackswe.com/coaching
Question: Implement QuickSort. Explain how it works. Explain the best and worst cases.
++++++++++++++++++++++++++++++++++++++++++++++++++
HackerRank: / @hackerrankofficial
Tuschar Roy: / tusharroy2525
GeeksForGeeks: / @geeksforgeeksvideos
Jarvis Johnson: / vsympathyv
Success In Tech: / @successintech

Пікірлер: 405
@nano959
@nano959 5 жыл бұрын
A CS tutor that speaks clearly and concisely??? Very rare!
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
yeah
@alanliang9538
@alanliang9538 4 жыл бұрын
Jonathan Banuelos you mean he doesn’t speak Indian accent lol
@pulkitjain8135
@pulkitjain8135 4 жыл бұрын
@@alanliang9538 what do you mean by that??
@za3931
@za3931 3 жыл бұрын
@@pulkitjain8135 racism
@SpaceTimeBeing_
@SpaceTimeBeing_ 3 жыл бұрын
@@BackToBackSWE Are these bot replies? Why are most of your replies so bland and short
@arvindg553
@arvindg553 3 жыл бұрын
This guy's : is this ever impacting u? Me : what? It's saving my life
@BackToBackSWE
@BackToBackSWE 3 жыл бұрын
great lol
@brett9769
@brett9769 5 жыл бұрын
Hey man. Been watching your videos for a few weeks. Your explanations and thought process is exactly what I needed to get a refresher on all things ds&a. I just recently landed a job offer at a dream company, so thanks a ton for all your hard work and help!
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
nice. Hope work goes well and you are happy :)
@arnabchakraborty246
@arnabchakraborty246 3 жыл бұрын
My feeling is also same here, Iwas searching for this kind of thinking ability
@Jackado0dle
@Jackado0dle Жыл бұрын
Don't stop doing what you're doing! These videos have been an incredible help in getting my head around algorithmic time complexity for my computer science masters - thank you!!
@carsonstone6954
@carsonstone6954 4 жыл бұрын
I wish I just watched your videos instead of taking my algorithms and data structures class
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
ye
@kennethmcausland2360
@kennethmcausland2360 3 жыл бұрын
It's impacting. In a good way. Most professors in most cs programs really don't go into detail about these algorithms much. Even grad school programs have that problem at times because then it seems like you should know these things. You're doing a good job and hopefully this channel and others stick around.
@natachatomkinson1332
@natachatomkinson1332 3 жыл бұрын
This is one of the Back to Back SWE videos have helped me understand "Introductions to Algorithms" - a book probably aimed at people who already understand the algorithms in question. I am so glad for this series. Thanks a lot!
@BackToBackSWE
@BackToBackSWE 3 жыл бұрын
great
@bhar92
@bhar92 5 жыл бұрын
Dude. Thank you for putting the time in making these videos. They are IMMENSELY helpful! Don't burn out making them, take your time, do them at your pace, cause they are some of the best in the business. Really, you are awesome.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Thanks. I haven't burnt out. I just started work in San Francisco and I am building a pretty cool and fancy site for this channel which I hope to launch mid-end of July. Once it is out I'll be back on the throttle to post more technical videos as I support the site and begin working on the next software.
@SihaLoire
@SihaLoire 4 жыл бұрын
FINALLY someone who explains what a pivot is. Pivot concept is key to understand how quicksort works and also to understand "the kth largest element in an array" problem.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
yes
@chrisxx9268
@chrisxx9268 4 жыл бұрын
You're one of the most eloquent tech guys on youtube. I just started programming this month, and your video helped me implement quicksort in JS!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
great! but im not a tech guy, Im just a guy
@sohailsaha7427
@sohailsaha7427 2 жыл бұрын
One of the best instructors on KZbin! Thank you for your contribution!
@danielasanchez8151
@danielasanchez8151 4 жыл бұрын
You are my favorite! What is really helpful is that you explain the idea, which is what a lot of videos don't do. Mosts just focus on the coding, but not in the concepts. I'm very thankful I found you!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
great and glad you're here.
@Titanman316
@Titanman316 3 жыл бұрын
Stumbled upon this during my interm. algorithms class at UC Riverside. Honestly dude, your short videos do more than entire lectures for my understanding. Thank you.
@pablorr24
@pablorr24 2 жыл бұрын
2022 and you're still helping people. I'm not enjoying my classes but watching your videos give me reassurance that I really like these topics. Thanks a lot man!
@BackToBackSWE
@BackToBackSWE 2 жыл бұрын
Glad to hear that! Subscribe to our DSA course with a flat 30% discount for some amazing content b2bswe.co/3HhvIlV
@Gapo1994
@Gapo1994 4 жыл бұрын
Amazing Videos ! I love how you explain everything at the deepest level which is exactly what I need to understand those algorithms properly :D
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
great
@supernugget98
@supernugget98 2 жыл бұрын
you have been a huge factor in helping me understand some of these concepts. Please keep it up. You're the first place that I go when I'm having trouble.Thank you!
@BackToBackSWE
@BackToBackSWE 2 жыл бұрын
Thank you, glad you liked it 😀 Do check out backtobackswe.com/platform/content and please recommend us to your family and friends 😀
@poojaguru2516
@poojaguru2516 4 жыл бұрын
I've never understood something so clear... thank you so much! :')
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
nice!
@ladieimp2416
@ladieimp2416 2 жыл бұрын
Thank you for making these videos! The way you explain and break down things are great! They are helping me so much here in 2022 and I am going to try and watch all of them. I wish you much success in your career!
@BackToBackSWE
@BackToBackSWE 2 жыл бұрын
Thank You!! Do check out backtobackswe.com/platform/content and please recommend us to your family and friends :)
@sulaimant5690
@sulaimant5690 3 жыл бұрын
"We do not place an item, into the section, that is less than the pivot." - just needed that much. Thank You, Brother! #keepUptheGoodWork.
@0x1h0b
@0x1h0b 4 жыл бұрын
Impact ?? it's life saver.... when ever i get stuck on some basic concepts ..this is the place i jump to... keep up the good work.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
hahaha thanks, yeah I'm back, about to make a ton of videos
@juni1634
@juni1634 5 жыл бұрын
Hey man thanks for posting these videos they are helping me a bunch, I'm about a month out from my job hunt, using your videos to prep while I continue to learn some Angular. Going to pitch in what I can for the Patreon thanks again !!!
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Aw, thanks
@dprophecyguy
@dprophecyguy 5 жыл бұрын
Hey Man i am also in the same position with Algo and Angular but i think i am comfortable with Angular, Do you want to study together ?
@joy-sm5sl
@joy-sm5sl 2 жыл бұрын
2021 and your explanations still helps, a lot. thank you so much! gonna binge on your vids and hopefully it helps my journey throughout this CS major :')
@MotoRider23605
@MotoRider23605 4 жыл бұрын
Wonderful tutor! With each passing days, I am falling in love with Algo's, good job brother..looking forward to have more lessons from u.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
great to hear.
@frankhu5418
@frankhu5418 4 жыл бұрын
Because you asked to. I'm posting again to let you know that you're helping me so much. Thank you for your help. The impact is huge on my life. These resources are some of the best most helpful videos on interviewing I've seen.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
When did I ask lol
@frankhu5418
@frankhu5418 4 жыл бұрын
@@BackToBackSWE 0:44 lol
@roberttaylor8391
@roberttaylor8391 4 жыл бұрын
I have never commented on a KZbin video before but thank you so much for this! Your code for Quicksort actually makes sense, which is something I have not found to be the case for other sources, including Cracking the Coding Interview. I have subscribed :)
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
welcome to the rodeo
@mariasandru7
@mariasandru7 4 жыл бұрын
You had a great impact on me!!! You are a blessing!!!!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
nice, wassup
@bowenzhang8714
@bowenzhang8714 3 жыл бұрын
This guy is a genius, find an easy and intuitive way to explain.
@VachaVyas
@VachaVyas 3 жыл бұрын
You are gifted! Thanks for making these concepts easy
@shruti6768
@shruti6768 4 жыл бұрын
YOU ARE HAVING AN IMMENSE IMPACT. AND THANKS FOR IT!!!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks haha
@timmytim9054
@timmytim9054 3 жыл бұрын
You're very good at explaining. I watch your videos and they make me very happy
@ulziiko
@ulziiko 4 жыл бұрын
Thanks for hard work, I can see how much effort you put in this video.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
ye
@rogerrodulfo
@rogerrodulfo Жыл бұрын
probably the most easy to understand video on quicksort. Thank you
@alimaher8386
@alimaher8386 Жыл бұрын
Perfect! I really love that, you explain it as good as it's posssible. Nice.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Table of Contents: Talking About Stuff 0:00 - 1:05 Introducing Quicksort 1:05 - 2:04 The Split Subroutine 2:04 - 2:43 The Partition Subroutine 2:43 - 3:24 Partitioning: Choosing A Bad Pivot 3:24 - 10:34 Partitioning: Choosing A Good Pivot 10:34 - 15:11 Analysis: Choosing Bad Pivots 15:11 - 19:06 Analysis: Choosing Good Pivots 19:06 - 22:07 Analysis: Good Pivots - Work Done At Leaf Level 22:07 - 23:37 Flashback To Merge Sort 23:37 - 24:01 Why Quicksort Is O(n*log(n)) 24:01 - 25:02 Wrap Up 25:02 - 26:12 Errors: 3:25 - 15:11 -> I messed up how I advanced 'i' in both examples. I should have started 'i' at left - 1 everytime...my bad. What should happen is that we should start 'i' at 'left - 1' and anytime we swap into 'i' we always advance 'i' FIRST before the swap. These errors don't change the fundamental job of 'i', which is to keep the tail of the section of items less than the pivot. Make sure you take that away from this. 4:02 -> Forgot to edit that text out haha 24:23 -> This is only the exact bound on the best case. Not the average case as well. The code for quicksort is in the description. Fully commented for teaching purposes.
@StrayKev
@StrayKev 4 жыл бұрын
TY so much. Clearest quicksort video on youtube
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks
@ilya1131
@ilya1131 3 жыл бұрын
man I love your videos, your teaching skills are amazing!
@calebwalls8668
@calebwalls8668 4 жыл бұрын
Your videos are really awesome and have helped me alot in my data structures class for LSU. Thank You!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure
@lockitdrop
@lockitdrop 4 жыл бұрын
I haven't understood quicksort for 2 years, thanks a bunch man
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks for watching
@alexeydemyanchuk
@alexeydemyanchuk 2 жыл бұрын
Continue! You are doing great, man! Thanks a lot!
@KanonetTI
@KanonetTI 29 күн бұрын
For sure your videos is causing a positive impact. At least, for me this channel is so valuable. Great job man!
@jayyupinhu9146
@jayyupinhu9146 4 жыл бұрын
give this man a gold metal! respect!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks
@alannah000
@alannah000 10 ай бұрын
Finally understand quick sort! Thanks so much
@LaysaBit
@LaysaBit Жыл бұрын
What a great teacher, my god! always amazed by your skills ❤
@gisellg7699
@gisellg7699 4 жыл бұрын
If i could like this 100 times i would 😩omg best video on youtube about quicksort! I literally have watched all lol thank you for making these videos
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
ye
@svetashtrakh6565
@svetashtrakh6565 5 жыл бұрын
You're so cool ! Thank you for your videos, now I'm more confident about passing my exam :)
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
nah ur cool
@AvinashKumar-pl7wc
@AvinashKumar-pl7wc 4 жыл бұрын
I wish i could like the video million times. Thanks for the gift.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure
@YonatanVolsky
@YonatanVolsky 11 ай бұрын
Thank you so much! You're a genius in your explanation way
@riverlance9647
@riverlance9647 3 жыл бұрын
One of the best Tech -tuber, has an website on interview prep and still gives his best in youtube explanantions and dont advertise his website on youtube like tech lead , clement does, tech-lead and clement should learn from him on how to give best in youtube and stop honeytrapping vulnerable kids
@BackToBackSWE
@BackToBackSWE 3 жыл бұрын
thx
@mydemon
@mydemon 3 жыл бұрын
tech lead is a psychopath lol
@zachzulanas4125
@zachzulanas4125 4 жыл бұрын
dude you're literally the only reason why I understand these algorithms. My CS 101 prof teaches so weirdly, you should really consider pursuing academia if you haven't already
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks and I do not want to
@zachzulanas4125
@zachzulanas4125 4 жыл бұрын
@@BackToBackSWE relatable LOL
@icono__7136
@icono__7136 4 жыл бұрын
@@BackToBackSWE lmao
@yardy88
@yardy88 3 жыл бұрын
This is so well presented. Instant subscribe. Thanks man.
@tinkerneer
@tinkerneer 5 жыл бұрын
Thanks for this, I was actually wondering couple days ago why there isn't a sorting video for quick sort.
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
yeah, give me a year or 2, this channel needs to be fleshed out more. I'm aware of all that's missing for the most part.
@dennislarsen5744
@dennislarsen5744 3 жыл бұрын
You are a legend. I always go watch you on here before a class :)
@arvindg927
@arvindg927 4 жыл бұрын
This is the only vedio I found which tells exactly what exactly is PIVOT.. THANKS BRO
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure...bro.
@VillageJoker
@VillageJoker 2 жыл бұрын
now we are at 161k thank you for all your efforts love from india
@ExarchiasGhost
@ExarchiasGhost 3 жыл бұрын
You explanation is amazing. be assured that one day I will take few days off to watch all your algorithm themed videos :)
@BackToBackSWE
@BackToBackSWE 3 жыл бұрын
thanks and nice
@nanujhakree9057
@nanujhakree9057 4 жыл бұрын
Hey Bro.... Just wanna say... Keep up with your videos, they help students like us all around the globe..... ❤️❤️❤️❤️❤️❤️
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
hah nice!, wassup
@im_parth
@im_parth 4 жыл бұрын
Teaching is an art and you are an artist :)
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
yis
@Mines2013
@Mines2013 2 жыл бұрын
I love your videos! Keep up the good work!
@tarunsraina7243
@tarunsraina7243 4 жыл бұрын
Thank you so much,you probably dont know how much this means to me. Love from india🇮🇳
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure and thanks
@winperec
@winperec 4 жыл бұрын
I guess you have not enough subscribers and watches! One of the best CS videos I ever seen. Thank you!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
we coolin', in time
@lextor99
@lextor99 4 жыл бұрын
Subscribed! Very good explanations, please continue doing what you do.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thx
@marykeshkha2282
@marykeshkha2282 4 жыл бұрын
SERIOUSLY!!!! Thank youuuu, u'r the best ❤️❤️❤️
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
nah u da bes'
@marykeshkha2282
@marykeshkha2282 4 жыл бұрын
It helped a lot.... I have an exam next week.... Feels confident now 😎 thnx to u
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
@@marykeshkha2282 nice
@jageenshukla4825
@jageenshukla4825 5 жыл бұрын
Hay man I just want to say thanks for all the videos because of that today I am having f2f interview in Amsterdam. I am not sure I will pass or not but you gave me enough confidence to face it.. :) cheers
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Hahaha nice! I just came back from Amsterdam...like 2 days ago. That's wild. I walked past the Oracle office behind this one Dutch dude who was speaking Dutch and he had a cool Oracle bookbag. Ahhh...good times.
@jageenshukla4825
@jageenshukla4825 5 жыл бұрын
@@BackToBackSWE Ohh I missed my chance of doing mock interview with you :p
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
@@jageenshukla4825 haha
@vibekdutta6539
@vibekdutta6539 4 жыл бұрын
The best explanation ever, so detailed, I really enjoyed it!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
nice
@vibekdutta6539
@vibekdutta6539 4 жыл бұрын
Sir, I really need a help from you, I am not really good at Dynamic programming and there's a problem that's eating my head for a long time, could you please please please solve it and make me understand?
@vibekdutta6539
@vibekdutta6539 4 жыл бұрын
The problem is "Faffa and The Ancient Mathematician" from Code forces.
@vibekdutta6539
@vibekdutta6539 4 жыл бұрын
There an explanation of the problem by Rachit Jain on KZbin but I didn't get the multiple DP going on in parallel. Please help me, coz there's none to guide me! Thanks! :)
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
@@vibekdutta6539 haha um, I'm pretty busy, I'd love to but don't think I can make the time today
@puperhacker2150
@puperhacker2150 5 жыл бұрын
Congrats for 10k!
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
Thank you *smile*
@colinz7234
@colinz7234 4 жыл бұрын
love you sooo much, this video really helps!!!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure
@augustusvonwatts555
@augustusvonwatts555 2 жыл бұрын
thank you for sharing. These videos have been a big help
@BackToBackSWE
@BackToBackSWE 2 жыл бұрын
Thank you, glad you liked it 😀 Do check out backtobackswe.com/platform/content and please recommend us to your family and friends 😀
@MrAbsinator
@MrAbsinator 3 жыл бұрын
why is this guy better than the lecturer in my course that I paid $2.2k for?
@BackToBackSWE
@BackToBackSWE 3 жыл бұрын
im not sure
@ricardocaballero6357
@ricardocaballero6357 Жыл бұрын
Buddy I love your videos, thanks a lot
@lomoyang3034
@lomoyang3034 3 жыл бұрын
Hey, my friend. I'm an SDE with a couple of years of industry and academic background. I really appreciate your effort to explain this algorithm. Regardless of the commercial purpose behind the video, your explanation is mostly accurate and easy to understand ( Though I have to say, it's better for you to put the average case before the worst-case example in this video.) Carry on, looking forward to new content from you! btw: I have the confidence to say many, yes many, explanations of quicksort from some others are WRONG. Well done, sir!
@lomoyang3034
@lomoyang3034 3 жыл бұрын
one more suggestion, I will be better for you to explain why quick sort is "Quick". I know the answer..but..I'll leave the work to you...
@user-gh6sz6jn9v
@user-gh6sz6jn9v 5 ай бұрын
Really thanks for the detailed explanation, this video solved my questions watching Wiki of Quicksort
@BackToBackSWE
@BackToBackSWE 5 ай бұрын
Happy Holidays 🎉 Haha Thank you for your kind words! We'd love to offer you a 40% Off our exclusive lifetime membership just use the code CHEER40 - backtobackswe.com/checkout?plan=lifetime-legacy&discount_code=CHEER40
@heyjordn
@heyjordn 4 жыл бұрын
This channel made me love algorithms again
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
ye
@bryanchau3772
@bryanchau3772 3 жыл бұрын
this channel deserves more than million subs
@markusheinemann9258
@markusheinemann9258 2 жыл бұрын
Very nice explanation. Thank you!
@marcousosewelle5501
@marcousosewelle5501 4 жыл бұрын
Brilliant work!!!! Absolutely brilliant. Thank you :-)
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks
@songulmesale5264
@songulmesale5264 5 ай бұрын
ı hated data structures lectures before thıs man but now I can easily understand everythıng .thank u a lot .You are my hero :)
@BackToBackSWE
@BackToBackSWE 5 ай бұрын
Happy Holidays 🎉 this means so much, thanks, songulmesale! We'd love to offer you a 40% Off our exclusive lifetime membership just use the code CHEER40 - backtobackswe.com/checkout?plan=lifetime-legacy&discount_code=CHEER40
@niekbeijloos8355
@niekbeijloos8355 11 ай бұрын
Very well explained, thank you!
@BackToBackSWE
@BackToBackSWE 11 ай бұрын
Thank you! Please enjoy a special code from us - backtobackswe.com/checkout?plan=lifetime-legacy&discount_code=niekbeijloos8355 🎉
@joey6743
@joey6743 4 жыл бұрын
Thank you for all that explanation. 🤗🤗🤗
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure
@044_karan8
@044_karan8 3 жыл бұрын
I like your videos even before starting .. that's how much I like your content..keep making this kind of videos pls :)
@BackToBackSWE
@BackToBackSWE 3 жыл бұрын
ok
@rohangarg5473
@rohangarg5473 4 жыл бұрын
best explanation on quick sort !!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks
@saurabhjindal2775
@saurabhjindal2775 4 жыл бұрын
Best content I have ever encountered
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thx
@saurabhjindal2775
@saurabhjindal2775 4 жыл бұрын
@@BackToBackSWE you really read your comments. Only some have this quality. Really Impressed
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
@@saurabhjindal2775 Yeah haha, why wouldn't I. I really care about what I'm building.
@fredwooten14
@fredwooten14 4 жыл бұрын
Another great video my friend!!
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
thanks :)
@arjunkramadhati8910
@arjunkramadhati8910 3 жыл бұрын
Thank you. Amazing video :)
@BhupendraYadav-li4ts
@BhupendraYadav-li4ts 4 жыл бұрын
You are just Awesome Bro. Love you.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
wassup
@nzlotrfan
@nzlotrfan 2 жыл бұрын
I really felt the "move on" at 7:37. Btw, really helpful video!
@bonniwanamaker6296
@bonniwanamaker6296 5 жыл бұрын
Yet another great video. Where were you when I was learning this stuff in undergrad? :-)
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
In middle school I think...near corn fields 🌽🌽
@mattstyles4283
@mattstyles4283 3 жыл бұрын
Amazing videos, the only teacher who actually explains algorithms clearly! One question- at 11:19 you said that "it does matter where i goes... I messed up... but you get the idea". Where should i go, at -1 or 0?
@mattstyles4283
@mattstyles4283 3 жыл бұрын
I saw in your attached code that i starts at -1, so that when j finds a number, i will be incremented to point to the next available spot in the 'less-than' portion. Then the swap occurs, and j is advanced forward. However, I've also been messing around with my own implementation and it seems that you can start i at 0, as long as you perform the swap first and THEN increment i. When it comes to reinserting the pivot, it needs to be at i (rather than at i+1 when i starts at -1).
@gilt9936
@gilt9936 4 жыл бұрын
thank you very much, very clear explanation.
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure
@jayanttanwar4703
@jayanttanwar4703 3 жыл бұрын
Thanks man,good explanation.
@BackToBackSWE
@BackToBackSWE 3 жыл бұрын
sure
@aryankhare9393
@aryankhare9393 3 жыл бұрын
Such a great explanation
@anicorner7723
@anicorner7723 3 жыл бұрын
I hope you realize that you are changing peoples lives!(for the better).
@BackToBackSWE
@BackToBackSWE 3 жыл бұрын
great to hear
@aaron-uz6pc
@aaron-uz6pc 3 жыл бұрын
Excellent explanation of Lamuto partitioning
@Victor-cg4hx
@Victor-cg4hx Жыл бұрын
It's glad to see that my favorite basketball player Chris Paul teaching the algorithm courses.
@CemKumral
@CemKumral 4 жыл бұрын
Hey man thanks for the videos
@BackToBackSWE
@BackToBackSWE 4 жыл бұрын
sure
@abc17034
@abc17034 5 жыл бұрын
Yes! Just what I need!
@BackToBackSWE
@BackToBackSWE 5 жыл бұрын
hey
@baxsdb
@baxsdb 2 жыл бұрын
You helped me survive an algo class 💯
@user-bg7yp9wg6z
@user-bg7yp9wg6z 4 ай бұрын
Any new videos? Your explanation is so good!
@vighneshk509
@vighneshk509 3 жыл бұрын
dude (or i should call you sir ) thanks for this highly valuable content with great video and audio quality
@BackToBackSWE
@BackToBackSWE 3 жыл бұрын
dude's fine
@user-rq9kd7xu5x
@user-rq9kd7xu5x 3 жыл бұрын
you are amazing!!! thank you so much!!!
@BackToBackSWE
@BackToBackSWE 3 жыл бұрын
sure!
@charliel7041
@charliel7041 2 жыл бұрын
this is an awesome video!
Quicksort Sort Algorithm in Java - Full Tutorial With Source
24:58
Coding with John
Рет қаралды 227 М.
Why Is Merge Sort O(n * log(n))? The Really Really Long Answer.
36:50
Back To Back SWE
Рет қаралды 112 М.
Glow Stick Secret (part 2) 😱 #shorts
00:33
Mr DegrEE
Рет қаралды 52 МЛН
Why? 😭 #shorts by Leisi Crazy
00:16
Leisi Crazy
Рет қаралды 38 МЛН
Sorts 8 Quick Sort
9:12
RobEdwards
Рет қаралды 194 М.
trigonometry like you've never seen it
25:53
Michael Penn
Рет қаралды 12 М.
2.8.1  QuickSort Algorithm
13:43
Abdul Bari
Рет қаралды 3 МЛН
AVL Trees & Rotations (Self-Balancing Binary Search Trees)
20:38
Back To Back SWE
Рет қаралды 320 М.
Quicksort Algorithm Implementation | C Programming Example
20:37
Portfolio Courses
Рет қаралды 54 М.
⌨️ Сколько всего у меня клавиатур? #обзор
0:41
Гранатка — про VR и девайсы
Рет қаралды 545 М.
Fiber kablo
0:15
Elektrik-Elektronik
Рет қаралды 7 МЛН
Nokia 3310 versus Red Hot Ball
0:37
PressTube
Рет қаралды 2,2 МЛН
Как я сделал домашний кинотеатр
0:41
RICARDO
Рет қаралды 1,4 МЛН