2.8.1 QuickSort Algorithm

Поделиться
HTML-код
  • Опубликовано: 30 окт 2024

Комментарии • 1,7 тыс.

  • @MrRobot-gm9cv
    @MrRobot-gm9cv 5 лет назад +3363

    Abdul Bari, you're honestly such a talented teacher. Please don't stop making these type of videos. You are an angel sent from god.

    • @DonBeleren
      @DonBeleren 4 года назад +36

      I toooooootally agree!! He rocks!

    • @parthvasoya3562
      @parthvasoya3562 4 года назад +2

      Awesome man, just awesome

    • @kusumaseera3753
      @kusumaseera3753 4 года назад

      Yes

    • @mittalji919
      @mittalji919 4 года назад +27

      this man has saved us from getting fail in ds and algo😂😂

    • @madhumithak3338
      @madhumithak3338 4 года назад +4

      yes....He passed me in the exam....Very Thank you sir

  • @anthonyisensee
    @anthonyisensee 4 года назад +2091

    When he quietly said "that's it" I couldn't help but laugh. Because that's the most popular sorting algorithm in computer science, excellently explained in 13 minutes. That is indeed it, my fine sir. Thank you.

    • @repvoo2399
      @repvoo2399 Год назад +5

      What is there to laugh about it?

    • @Chaos_Nova
      @Chaos_Nova Год назад +24

      @@repvoo2399 bitter…

    • @sandro-of9fq
      @sandro-of9fq Год назад +36

      ​@@repvoo2399 laugh of joy.

    • @dhanush9570
      @dhanush9570 Год назад +9

      @@repvoo2399 bruh🙄

    • @SanilJadhav711
      @SanilJadhav711 Год назад +37

      @@repvoo2399 He literally mentioned in the comment itself why he laughed 🗿 your question comes off real negative ngl

  • @seanpayne9124
    @seanpayne9124 3 года назад +520

    I don't know if you still read these comments, but this explanation was so clear and concise. I really appreciate it.

    • @a-cah1423
      @a-cah1423 2 года назад +16

      He dropped a hint.

  • @shubhamn2690
    @shubhamn2690 4 года назад +174

    Your timing of taking pauses while teaching is just sooo right! It allows the viewer to process the information right at the time when it's needed.

  • @Lunixed
    @Lunixed 5 лет назад +1218

    I pay more than one thousand dollars to my algorithm analysis Professor here in the United States and I don't understand a single word that man says but you, for FREE have guided me through the whole entire course... I wish I could pay you instead. Thank you so much for the lectures.

    • @NeverQuitOk
      @NeverQuitOk 5 лет назад +84

      Teaching is a skill which is gifted by God. Now a days so called teachers are spoiling education system. The talented professional teacher are rarely found in college. Only business they want, not quality

    • @modelingandsimulation6941
      @modelingandsimulation6941 4 года назад +1

      Feel the same

    • @fatehmammadli7336
      @fatehmammadli7336 4 года назад +42

      He has patreon

    • @abkyabacha
      @abkyabacha 4 года назад +18

      Yes, I bought his Udemy course of DS and Algos even though I didn't need it.

    • @sid_sipani
      @sid_sipani 4 года назад +15

      @@srujohn652 Arey bhai kuch toh sharam kar le xD

  • @turtlepedia5149
    @turtlepedia5149 3 года назад +570

    Sir not only in INDIA but you are helping students all over the world 🔥🔥respect ++

  • @kimjiyoung8655
    @kimjiyoung8655 3 года назад +193

    Hi Abdul.
    Im Korean who is learning computer science here in Denmark.
    I have actually watched more than 30 different quick sort tutorials, and can definitely say your the best.
    it helps A Lot, thank you so much. 😘😘😘

    • @abhirajarora7631
      @abhirajarora7631 2 года назад +59

      Korean in Denmark and leaning topics on RUclips with the help of an Indian teacher. Truly a globalized world!

    • @techtronics6121
      @techtronics6121 2 года назад +14

      You should give respect to Sir. Is he your same age or junior that u talk to him like, hi Abdul?

    • @kimjiyoung8655
      @kimjiyoung8655 2 года назад +2

      @@techtronics6121 🤣sorry I'm living in Denmark, and we are 'Allowed' to call each others name and of course say "hi" regardless of their age, gender, race or their job.
      I can see you are SICK.😂 poor thing

    • @KnowledgeIsGold
      @KnowledgeIsGold 2 года назад

      @@techtronics6121 fk your mom

    • @movocode
      @movocode Год назад +36

      @@techtronics6121 In foreign countries it's quite normal - people even call ceo's by their first name.

  • @thexxmaster
    @thexxmaster 4 года назад +872

    Indian youtubers are the backbone of the new KNOWLEDGE ECONOMY

    • @danialhaziq7761
      @danialhaziq7761 3 года назад +13

      FACTS!!!

    • @teratoma.
      @teratoma. 3 года назад

      word

    • @anubhavsingh9049
      @anubhavsingh9049 3 года назад

      No

    • @putinscat1208
      @putinscat1208 3 года назад +1

      This teacher is very clear, and shows all the steps. And, he doesn't get into his religious, political, or personal stuff, he doesn't get distracted by pets coming into the video, etc. Unlike you.

    • @Sanyu-Tumusiime
      @Sanyu-Tumusiime 3 года назад +15

      @Tharun tharun My country doesn't even have a education here in Africa.
      This is legit premium super first class for free here on youtube i'm so glas that people like him exist

  • @MegaGemoroy
    @MegaGemoroy 3 года назад +139

    Thank you Mr Bari, not only you are very knowledgeable in this field but you are also able to communicate it in an easy to understand way. A great educator. You are a legend in our faculty, everybody knows you and respects your work.

  • @alperozdamar517
    @alperozdamar517 4 года назад +33

    You are the best teacher in algortihm, I've ever seen. Albert Einstein has a saying "If you can't explain it simply, you don't understand it well enough." Since I saw this video, I was so confused. Actually, I realize that it is very easy. You made my mind flashed. Thank you Abdul.

  • @vibhutisahu5376
    @vibhutisahu5376 2 месяца назад +5

    7:07 when you take pause, I am getting how deeply you have dive into each and every topic with details.... this type of control only comes up with the lots of patience, dedication and passion towards the thing what you love to do as a teacher...Huge respect for you Abdul Sir... It's my pleasure to study DAA from you in a such smoother way

  • @livingbeing8661
    @livingbeing8661 Год назад +23

    This person is legendary. Explaining quick sort in just 13 minutes is not a joke yet explain it so easily. Huge respect for you Sir.

  • @echoesofelysium18
    @echoesofelysium18 4 года назад +16

    Hi, the topic is Quick Sort. And thank you for watching the video. No asking for likes and subscribers and showing the bell icon thingy in the middle of the video. Perfect teacher. Not even expecting personal benefits. Hats off to you sir.

  • @calebhoward4718
    @calebhoward4718 3 года назад +12

    I have never been more grateful, I have used a couple of your videos to better grasp the concepts and always came out with it sticking. Thank you for these videos, they have helped me significantly!

  • @fitnesstravelwithdm4541
    @fitnesstravelwithdm4541 5 лет назад +87

    Happy teacher's day sir 😊..Hope you remember , you came to our college (Ideal institute of Engineering , Kalyani)..I was in the first bench attending your lecture..By your free you tube lectures on algorithm , many students are benefited.. without doubt Design and Analysis of Algorithms is tough subject to understand , but you made it easy to understand..On the behalf of the students , thanks​ a lot sir 😊.

  • @kartashuvit4971
    @kartashuvit4971 2 года назад +10

    Great explanation. FYI if anyone is struggling implementing this even after following his pseudocode, it's because you need to add an extra check in the do-while loops. You need to first check if i < length(A) before checking A[i] -1 first. Otherwise your extreme left/right partitions can run out of bounds.

    • @ashutoshchoudhari9630
      @ashutoshchoudhari9630 2 года назад +2

      if i < high and j > low. This should be the condition

    • @Sedri14
      @Sedri14 Год назад

      @@ashutoshchoudhari9630 Thanks, that's exactly what I needed

  • @bilalshafqat1634
    @bilalshafqat1634 4 года назад +13

    Fantastic, what a way to explain. I have no words. I passed my Data Structure course and my degree with A grade but I was never able to understand quick sort from the slides. Today I went through this video and damn. Excellent job.

  • @taskunter_dev
    @taskunter_dev 4 года назад +19

    I watched quite a few online tutorials and spent so much time at the uni's classes, but I have never met such a talented teacher as you are! Thank you! :)

  • @aakashdahal8207
    @aakashdahal8207 4 года назад +9

    Sir, I am from Nepal and my DAA exam was yesterday.Watching your videos were of great help.You really are a good teacher..My all friends study watching ur video...Sukriya

  • @shahi_nawab
    @shahi_nawab Месяц назад +2

    He taught with such calmness and pace, felt like i quenched every line of code, such a Great teacher 👌🔥

  • @manojprabhakaranm5752
    @manojprabhakaranm5752 5 лет назад +98

    That look you give after each explanation 😂 that gives me satisfaction 😁
    U R great sir

    • @masoom5320
      @masoom5320 4 года назад

      😂😂😂😂😂😂😂😂

  • @LizyAd
    @LizyAd 2 дня назад

    This was the best explanation of all the videos I looked at for Quick Sort. Please don't ever stop teaching. I am watching from Chicago! Thank you!.

  • @LiquidMasti
    @LiquidMasti 5 лет назад +7

    my professor took 2h to teach quick sort and still don't understand quick sort than i came here only 13min of video clear my concept. thanks andul sir big fan

  • @fatimanasir1502
    @fatimanasir1502 2 года назад +7

    This was like eating up the whole algorithm in 13 minutes, thank you so much for making it seem almost effortless.

  • @zainabsyeda5644
    @zainabsyeda5644 Год назад +3

    Absolutely saving my life 4 hours before my final exam. Thank you.

  • @adriandsouza5735
    @adriandsouza5735 2 года назад +25

    I passed my master's degree with distinction after learning concepts from these videos.
    Thanks a lot sir ....

  • @sumedhdeshpande3420
    @sumedhdeshpande3420 3 года назад +28

    Please add this to the description.
    0:00 Idea behind Quicksort
    03:03 Quicksort Definition
    04:00 Procedure of Quicksort/Working of Quicksort
    09:15 pseudo-code for Quicksort/Logical implementation of quicksort

  • @s.m.saifulislambadhon2654
    @s.m.saifulislambadhon2654 4 года назад +12

    His calmness is making everything easier and easier

  • @vishwam7928
    @vishwam7928 4 года назад +6

    Within 3 min you gave almost 90% idea and understanding of the algorithm, fantastic.

  • @dinuka
    @dinuka 4 года назад +1

    came here after reading so many articles about quicksort and without understanding anything. got the idea in a few minutes after watching your explanation. best video to learn quicksort.

  • @adrian716
    @adrian716 5 лет назад +8

    Thank you, sir. When I don't understand something at the university, I know you're here to save me. Great explanation!

  • @Saurabh5989
    @Saurabh5989 3 года назад +1

    I have seen videos and articles of many renowned people with no luck but then finally I landed your channel to get one stop concrete explanation to all complex algorithms. Thanks a lot sir. I was understanding the approach behind but was unable to appreciate the concept behind these.

  • @maliktarannum5418
    @maliktarannum5418 6 лет назад +21

    I watched so many videos got irritated but didn't understand it....finally your video has cleared this concept thank u so very much ...very nice 🖒

  • @Amir-wp8el
    @Amir-wp8el 2 года назад +3

    I don't know if you still read these comments, but this explanation was so clear and good , thank you

  • @nikunjmishra5817
    @nikunjmishra5817 3 года назад +3

    Mark my words today....no one can explain quick sort better & in such a small, crisp & to the point manner.....sir you have made these algorithms such a cakewalk....you are just a gem for college students....

  • @abduljelilali568
    @abduljelilali568 2 года назад +1

    the greatest computer science teacher on the web, hats off to you sir!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @maqeelkhader
    @maqeelkhader 4 года назад +74

    The need for infinity can be better explained by noticing that the first while loop will never end in case the input is sorted in descending order {5,4,3,2,1} . Infinity is a trick to prevent that situation here.

    • @prathamkushwah1670
      @prathamkushwah1670 3 года назад +2

      I dont know which test case you are using but this algo works fine without using INFINITY in the last position.
      It worked for [5 4 3 2 1], the test case you mentioned (without infinity).

    • @anitsarker4591
      @anitsarker4591 2 года назад +4

      @@prathamkushwah1670no it doesn’t work because i will continue incrementing until gets index out of if bound exception, because the first is the max element in the array, and no other element is bigger than it on the right hand side.

    • @asmo_1929
      @asmo_1929 2 года назад +1

      @@anitsarker4591 If it reaches infinity it will give an out of bounds exception anyway because position h is outside the array, I added a condition sa that it doesn't reach past h

    • @vanchark
      @vanchark 2 года назад +1

      you can alternatively check if i ever crosses j (i.e., while i

    • @metulusoy
      @metulusoy 10 месяцев назад

      This discussion should be higher. I also spent time to understand if infinity is necessary and based on this example, I will try it myself.

  • @mohamedatef3526
    @mohamedatef3526 2 года назад +2

    The way Abdul Bari receives and processes concepts in computer science is what makes his explanation for them that good.
    We are dealing with a phenomenal person who is hard-working, descent, and talented.
    Thank you sir.

  • @taaihone6881
    @taaihone6881 3 года назад +6

    After watching 5 videos on Quicksort, this is the one that actually clicked for me. Big thanks!

  • @boombasach
    @boombasach 3 года назад +1

    I wish I had a time machine to take you back in classroom 25 yrs back. Keep doing, you're an inspiration

  • @gangamvaishnavi1724
    @gangamvaishnavi1724 6 лет назад +530

    Sirrr plz come to our college and explain us data structures. We have suchh a worst faculty for data structure 😭😭...super explanation

  • @aishashaik9247
    @aishashaik9247 Год назад +1

    Sir it took me 3 months to understand this sorting technique.... But now that I found this video! I clearly understood every pin to pin detail of how it works... Thank you so much for making it so easy sir🎉

  • @parameshwarannatarajan3785
    @parameshwarannatarajan3785 3 года назад +7

    This is God level explanation. I could write this code in one iteration. You are making computer science knowledge accessible to all.Thank you sir , looking forward to more such content 🙏

  • @amitbehera8454
    @amitbehera8454 4 года назад +1

    A small change in do-while loop
    do{
    i++;
    }while(i < h && A[i] l && A[j] > pivot);

  • @shobhitranjan8680
    @shobhitranjan8680 2 месяца назад +3

    you are creator of many youtubers , who are taking thousands from us to teach same thing. eg-> Love babbar, TUF, Apna College and many more

  • @lasithathilakarathne3205
    @lasithathilakarathne3205 3 года назад +3

    "Hi, The topic is Quick Sort". You got me there. My first impression was, you're the most straightforward man I have ever seen in my life.I didn't even want to increase the playback speed. Enjoyed every second of the video and yet, I learned what was taught in a 2-hour confusing lecture, within 14 minutes. Thank you very much sir! and you got yourself a new subscriber.

  • @pranavi4324
    @pranavi4324 Год назад +2

    Prompt and excellent explanation. One of the best teachers on RUclips

  • @pvtbx4198
    @pvtbx4198 3 года назад +2

    This guy has such a comforting vibe for some reason... seems so nice

  • @Shambo271
    @Shambo271 5 лет назад +15

    You, Sir, were put on this earth to help us all get better! Your teaching style is exceptional. Thank you.

  • @fashizlecartman
    @fashizlecartman 3 года назад +2

    Sir. you are by far the most clear explainer of any computer science topic. hats off to you.

  • @_sarthakmisal
    @_sarthakmisal 3 месяца назад +6

    Congratulations for 1M Abdul sir

  • @marcosrj21
    @marcosrj21 2 года назад +1

    Abdul looks like the kind of teacher that is so dedicated that makes you want to learn so you can show your gratitude for his dedication.

  • @praveersharan3775
    @praveersharan3775 5 лет назад +21

    this is awesome. seriously. this guy knows how to teach.

  • @_modestgreat
    @_modestgreat Год назад

    I applied the algorithm on the array [8 4 6 5 0 1] and it wasn't perfect until I changed the condition while(a[i]

  • @alekosthecrow
    @alekosthecrow 4 года назад +37

    I love how you sometimes sound like you've already tried to explain it to me like 10 times and I still don't understand

  • @mislam2565
    @mislam2565 8 месяцев назад

    I couldn't understand the internal working of QuickSort algorithm, unless I watched this. Great work! You have broken down the technique so well. Thanks a ton! and keep up the good work.

  • @marianoduca9839
    @marianoduca9839 3 года назад +9

    Amazing, took me 10 minutes to grasp this thing better than 1 year of university ! God bless you

  • @man.6969
    @man.6969 7 месяцев назад

    even after 6 years i can't find a better video explaining quick sort this effectively 👌👌

  • @RahulKesharwanialwaysyours
    @RahulKesharwanialwaysyours 6 лет назад +67

    I have watched many videos on Quick Sort Tutorials but this is the video which I was finding. Thank you so much for uploading an effective tutorial.

  • @ANONYMOUSPERSON-i7o
    @ANONYMOUSPERSON-i7o 2 месяца назад

    I have no words...the video looks like just another tutorial until he starts writing the algorithm...."you are watching a god at work"..
    Please keep up the good work sir

  • @jabbahiggs7039
    @jabbahiggs7039 2 года назад +3

    This is much easier to follow than other videos about quicksort. Thanks!

  • @dineshshekhawat2021
    @dineshshekhawat2021 4 года назад +1

    This is the best explanation for quick sort I have ever seen. Crystal clear and understood in one watch.

  • @asimchakraborty2930
    @asimchakraborty2930 3 года назад +4

    I'm from Bangladesh.. But to know such things Abdul Bari sir is our first choice.. because when he says "That's it".. it means it's really done..

  • @P2P_official
    @P2P_official 10 месяцев назад

    He really explained the topic very well. I've seen many videos but only learnt "how to do" but he's only who taught "why to do". We lack these type of true teachers. 🙌🙌

  • @kingofgods898
    @kingofgods898 4 года назад +5

    The only man on planet Earth that makes learning CS concepts actually enjoyable

  • @saravanasai2391
    @saravanasai2391 Год назад +1

    😢 Abdul Bari. That's a clear explanation. I am trying to under that speration part for 4 hours. You nailed it in 13 min

  • @EddieKnaz
    @EddieKnaz 4 года назад +14

    do{
    i++;
    } while(A[i] pivot)
    will cause index out of bound.. easily given an array like [8,10]
    you need to add a condition to each while statement
    do{
    i++;
    } while(A[i] pivot && j >= left)

    • @garamburito
      @garamburito 3 года назад

      this is the commet that I was looking for. Just in case, in Java the range's check condition have to be at the beggining (short circuite). I mean: while(i < right && A[i]

    • @__ankush_kushwaha
      @__ankush_kushwaha 4 месяца назад

      yes same error occur but resolve thanks for pointing on the comment section so that everyone can become familiar of that .

  • @kezhan01
    @kezhan01 3 года назад

    I think there is a flaw with the two inner while, we need to add i < j before checking A[i] and A[j]

  • @profrenatoifspgru4928
    @profrenatoifspgru4928 5 лет назад +16

    Greetings from Brasil. Thank you for the video, this subject is dificult but when you teach it seems very easy. Unfortunately, I learn more from your videos than in classroom where I'm having classes of analysis of algorithms in master degree.

  • @santosh5336
    @santosh5336 3 года назад +1

    He is so confident in the topic like he developed the method. He didn't make a mistake then get back and eraised it

  • @ankitkamble4050
    @ankitkamble4050 5 лет назад +301

    Dev maaanusss🙏🙏🙏

  • @softwarain5674
    @softwarain5674 2 года назад

    I can't explain how much your videos helped me in this subject please don't stop making these vidoes

  • @haliluluoglu1188
    @haliluluoglu1188 5 лет назад +11

    You're one of the best teacher i have seen.Thank you very much,regards from Turkey.

    • @linuxguru27
      @linuxguru27 4 года назад

      iyi usta bulusak egitim cok kolay oleyor

  • @amritshukla3127
    @amritshukla3127 2 года назад +1

    If pivot element is largest element in range l to r this become infinite loop
    So we also have to add condition i

  • @sneha.tiwari
    @sneha.tiwari 4 года назад +6

    _From last month till now I was damn confused with quicksort_
    _and here you explained everything in just 5 minutes_
    _thank you so much sir😩😭_

  • @devverma7767
    @devverma7767 2 года назад

    Good Explanation!, but their is no need to check condition inside while loop to check i < j because it's already checked in while loop.

  • @indrajeetsingh6882
    @indrajeetsingh6882 3 года назад +3

    His slow voice with full of patience is epic

  • @ShaakirKarim
    @ShaakirKarim 11 месяцев назад

    Understood this concept in 15 mins what professors couldn't teach in 1 lecture , we love you sir you have literally proven that teaching is an art .

  • @bmpersonal6403
    @bmpersonal6403 3 года назад +3

    Mr Bari, you really are such a talented teacher and individual. I really can't express my gratitude enough for all of these videos. You really make hard concepts easy to digest and I really thank you for that. I have both of your courses C++ and C++ DSA, as Im taking it to supplement my university lectures.

  • @jrmaverick181
    @jrmaverick181 3 года назад +4

    WONDERFULWONDERFUL.EXCELLENT,EXCELLENT BIG DADDY KEEP IT UP ,YOU ARE FAR FAR BETTER THAN SOME CHIMPANZIES MAKING QUICK IMPRESSION IN THIS FIELD.....

  • @EC_Ritesh
    @EC_Ritesh Год назад +1

    sir you made it look so simple ! ... i can say its the simplest explanation i have surfed for in youtube for quick sort. THANKSS

  • @himanshukoul8615
    @himanshukoul8615 6 лет назад +20

    Thanks for uploading this.. just sorted my life

    • @zAbdullahKhan
      @zAbdullahKhan 5 лет назад +1

      I am confused at one point that is i is not less than j and sir is still interchaning i and j values i.e, in first swap i=16 and j=5 so i is not less than j. while in the code it is
      if(i

    • @kunalgupta8380
      @kunalgupta8380 3 года назад +1

      @@zAbdullahKhan i and j are index not value

  • @punitsalian7190
    @punitsalian7190 4 года назад +2

    remember in do{....}while(i < j && A[i]

    • @amanjethaniya7011
      @amanjethaniya7011 4 года назад

      i m still getting problem can you provide the code please

  • @faycalsaid702
    @faycalsaid702 5 лет назад +4

    Even the teacher didn't succeed to explain to me, thank's a lot now I'm up!

  • @Darksider95
    @Darksider95 2 года назад

    Sir, i've been spinning around for hours trying to figure out why thrs an infinite loop on my quicksort implementation, and you are the only one that explained on that, to include the pivot for the left sub-array, thank you sir, you are amazing

  • @seemaanjum1472
    @seemaanjum1472 6 лет назад +5

    I don't understand why some people have disliked the video. Sir has explained the concept from very basics and his explanations seems very convincing as well.

    • @harshittaneja471
      @harshittaneja471 2 года назад

      u don't know he told wrong condition in inner while loop

  • @shwetajha8745
    @shwetajha8745 3 года назад +2

    This is the first video I've seen and I think I'll stick around this channel a lot.

  • @kritisingh2827
    @kritisingh2827 6 лет назад +4

    Quick sort really scared me but now after understanding I realise this is so easy

  • @megr
    @megr 2 года назад +1

    Big thank you for taking a time to share your knowledge and make easier for us to learn.
    I understood the concept after watching the video, however, there is something that need to be added on both whiles in the Partition function. Just need to check the array indexes, otherwise, we'll exceed the boundaries of the array, something like this:
    for the i-while while (i < hight && array[i] low && array[j] > pivot);
    All the rest is just great. Thank you

    • @abdul_bari
      @abdul_bari  2 года назад +1

      Infinity is used for checking the boundary. If you are using boundary conditions, then no need of infinity.

    • @megr
      @megr 2 года назад

      @@abdul_bari Understood. Big thanks

  • @piratedvirus
    @piratedvirus 5 лет назад +4

    After all those months, I finally understand this algo perfectly! Thank You

  • @rajanverma4995
    @rajanverma4995 3 года назад

    Aap jaise teacher bahut kam milte hai. Salute you sir🤗

  • @aatifnazar8203
    @aatifnazar8203 4 года назад +7

    Thank you Sir, these crisp lectures are priceless. How are you doing in this lockdown?

  • @ravish5903
    @ravish5903 2 года назад +1

    Thanks a lot for explaining in detail.
    I just got to this video on RUclips Search for quicksort algorithm.
    While implementing this method.
    There was a basic mistake and I spent a couple of hours in understanding those mistakes.
    In the inner while loops in Partition function, we should also check for boundary conditions.
    while ($i < $h && a[$i] $l && a[$j] > $pivot)
    Keep uploading these wonderful videos which explain concepts very clearly...
    Regards,
    Ravish.

  • @focus9099
    @focus9099 3 года назад +6

    He protects
    He attacs
    But most importantly:
    he's the best teacher on this earth and he is smart ;)

  • @williambrace462
    @williambrace462 2 года назад +2

    this fella is a brilliant teacher

  • @psyche5184
    @psyche5184 2 года назад +4

    Not only is he good at algorithms, he is good at teaching them to us laymen.

  • @whatisnew1511
    @whatisnew1511 2 года назад +1

    thousands of tutorials in just one video. keep it up you're are an amazing teacher

  • @ransam8475
    @ransam8475 3 года назад +8

    Your voice is so relaxing sir❤️we can come out of exam stress by ur voice ☺️

  • @thirftsity4204
    @thirftsity4204 10 месяцев назад

    I always thought that the quicksort was one of the hard to understand algorithm, so I never tried to learn it (you guys must know the feeling), but Sir Abdul Bari explained it so excellently I had all the visualization of how the algorithm is working, in my head, and after watching the video I was able to implement it without any problem.

  • @AnkitSaiyan
    @AnkitSaiyan 5 лет назад +5

    These topics were never so easy! Thank you sir!