Quick Sort Using Recursion (Theory + Complexity + Code)

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ม.ค. 2025

ความคิดเห็น •

  • @KunalKushwaha
    @KunalKushwaha  5 หลายเดือนก่อน +8

    DSA + interview preparation playlist: th-cam.com/play/PL9gnSGHSqcnr_DxHsP7AW9ftq0AtAyYqJ.html

    • @mokka_comedy
      @mokka_comedy 3 หลายเดือนก่อน +1

      Hi kunal, u are the best, could you pls complete entire topics on DSA

  • @Tomharry910
    @Tomharry910 ปีที่แล้ว +7

    I remember plucking out my hair on recursion and sorting algos before stumbling on your videos. You explain it very well and its very intellectually satisfying to watch your videos as well.

  • @hc-dc7043
    @hc-dc7043 2 ปีที่แล้ว +42

    One of the best explanations I've seen for Quick Sort. The way he broke the concept down to its nuts and bolts is really amazing.

  • @nishantsingh8477
    @nishantsingh8477 3 ปีที่แล้ว +23

    There's this merge sort and quick sort, people say its hard to understand this and so I left them and proceeded further in my DS journey. But I was damn sure you will make it easy and so listened to you and Now I know this . Thankyou KK Bhaiya 🤩

  • @Sillysmiles76
    @Sillysmiles76 ปีที่แล้ว +27

    Such a blessing to learn DSA with your videos.😇 Please complete the series.🙂

  • @zainabfahim8714
    @zainabfahim8714 3 ปีที่แล้ว +24

    The confidence you have in your work, is empowering!! Keep that going

  • @sagarmore9425
    @sagarmore9425 2 ปีที่แล้ว +10

    I have tried to understand merge sort and quick sort literally a thousand times. In college, classes, some time by me.
    I was not able to visualize how it is actually working with recursion, although I knew the code.
    But the way, you are simplifying the things and the way you have had the first recursion video done is just awesome.
    That first recursion video is quite important and on top of this you explained this sorting so well, kudos man!

  • @AshishKumar-ys7rj
    @AshishKumar-ys7rj ปีที่แล้ว +2

    best lecture on yt for quick sort because it is the most efficient i have seen, but first watch the quick sort algorithm by striver, he will clear all the doubts if you have got any by watching this lecture , since i had lot of doubts . Once you understand the algorithm u can follow the code here .
    The concept will be crystal clear then .

  • @mk_ahmar
    @mk_ahmar 2 ปีที่แล้ว +16

    Hey Kunal, your lectures are valuably explained, and covers everything one should know sooner or later.
    For example after watching this QuickSort lecture, all I've to do is practice some question, I don't need to watch any more concept of this anywhere, and this is amazing. You and your video lectures are underrated, if this quality of lectures are provided by any EdTech they would have charged that course extravagant.
    Hope I'll be able to get ₹7Lakh/month 😂(Joking).

    • @KunalKushwaha
      @KunalKushwaha  2 ปีที่แล้ว +31

      you wont get 7 lakhs per month with dsa, it happens with dev

  • @vidhijain2945
    @vidhijain2945 3 ปีที่แล้ว +18

    The way you have explained is great Kunal!

  • @VinodKumar-fn2iq
    @VinodKumar-fn2iq 3 ปีที่แล้ว +8

    Kunal is very quick now 🔥
    Thanks for the course ❣️

  • @karthikpm9669
    @karthikpm9669 3 ปีที่แล้ว +8

    this is good...i mean its good that you didnt advertise your videos in a humble way , because people wont know how good your videos are. PS i didnt realise how fast time went , the way you taught was very smooth and seemed like a story to me.

  • @shantahiremath7313
    @shantahiremath7313 9 หลายเดือนก่อน

    Thank you Kunal Sir. You are always the best teacher. I never learned this sort by fearing the complexity. But now you made it a cakewalk. Always grateful.

  • @rohitchilhorkar8114
    @rohitchilhorkar8114 3 ปีที่แล้ว +3

    I can't even express how much value it is providing us...hats off kunal bhai!

  • @tejasvijain1077
    @tejasvijain1077 2 ปีที่แล้ว +1

    Before watching this vid, i was on gfg and javapoint understanding what quick sort was and my god, kunal has explined it so well and he hasnt copied what they did and I was blown by how easy he has made this!! Kudos bro,

  • @shikhamaurya4453
    @shikhamaurya4453 3 ปีที่แล้ว +16

    Ohh damn,
    This was so well explained
    45 minutes is totally worthy

    • @KunalKushwaha
      @KunalKushwaha  3 ปีที่แล้ว +6

      Thank You!

    • @twi4458
      @twi4458 3 ปีที่แล้ว

      Can anyone help me in understanding 24:50, How we got O(N^2). It is Linear Recurrence Relation, Right?

    • @ritviksaran6199
      @ritviksaran6199 2 ปีที่แล้ว

      after each pass how does it ensure that pivot will end up in the correct position ?

  • @santoshkumarpandey8372
    @santoshkumarpandey8372 12 วันที่ผ่านมา

    Amazing, if You dont understand first time, please re-re listen. it is amazing

  • @sravansunkara
    @sravansunkara ปีที่แล้ว

    I feel very confident whenever I learn from you, Thank You for existing, God bless you!!!

  • @VishalKumar-pk9ek
    @VishalKumar-pk9ek 3 ปีที่แล้ว +8

    In the merge sort video , I was little confused in the concepts of sorting algorithm through recursion but by this video , the previous confusion also got cleared . Thank you so much 😍😍😍

    • @KunalKushwaha
      @KunalKushwaha  3 ปีที่แล้ว +1

      You're very welcome!

    • @vikassk1308
      @vikassk1308 3 ปีที่แล้ว

      @@KunalKushwaha
      little confused, when you say pivot would be in the correct position after swaps
      if I have below array and I choose 4 as pivot
      {8,6,1,4,2,12}
      after swaps, ill end up having
      {2,4,1,6,8,12}
      where 4 is at index 1 but it should be at index 2 right ?

  • @Mohit_Gupta24
    @Mohit_Gupta24 8 หลายเดือนก่อน

    As always brilliant explanation. I used to be scared of quick sort in my college days, but this video makes it seem really easy.
    Moreover, I was able to relate Step: placing pivot at the correct index with Binary Search step.
    In binary search, we search for a target element, assuming the array is sorted, and use the start and end indexes as pointers to the virtual array. Here we have to just place the pivot at the correct index, so instead of searching the target, we already have the target(i.e. pivot), we have to put at correct index and in this process we are ensuring elements less than pivot are on LHS, and elements greater than pivot are RHS.

  • @Helly_Patel
    @Helly_Patel 2 ปีที่แล้ว +5

    Thanks for teaching us like no one did till now!! One small request, please make lectures on dynamic programming as well!!

  • @vinaykrishna747
    @vinaykrishna747 ปีที่แล้ว +2

    Please Use Black Background for writing on the screen
    It doesn't affect eyes much 😊😊
    Consider this Man

  • @rakeshkumarmaurya8265
    @rakeshkumarmaurya8265 3 ปีที่แล้ว +5

    Best DSA COURSE on EARTH 🔥🔥
    THANKU @kunal kushwaha

  • @shivamrana4633
    @shivamrana4633 10 หลายเดือนก่อน

    You are boosting my confidence day by day..🎉😊

  • @SochtaHoonMain
    @SochtaHoonMain ปีที่แล้ว +30

    Kunal Kushwaha : "Your start is low , Your End is going to be high" :)

  • @devanshgaur1747
    @devanshgaur1747 3 ปีที่แล้ว +1

    Bhaiya ,aap sachii mein bohot achaa padhatee hoo. Thanks bhaiya for such a course

  • @charaiveticharaiveti8414
    @charaiveticharaiveti8414 3 ปีที่แล้ว +3

    Kunal, your tutorials are gems. I can pay for such quality content. But you choose not to. Love and Regards. Tweeting for better reach.

  • @piyush9266
    @piyush9266 3 ปีที่แล้ว +1

    U knw bro..i think u r inborn Guru not a professional teacher.may god bless u with all Happiness of this universe.🙏

  • @jyotiprakashnayak1123
    @jyotiprakashnayak1123 3 ปีที่แล้ว +4

    best course till date in any platform

  • @Cloud-577
    @Cloud-577 2 ปีที่แล้ว +1

    thank you I actually like this implementation better than other ones I have seen. this will stick with me, no doubt

  • @nishu0766
    @nishu0766 5 หลายเดือนก่อน +2

    i request you to please upload all the remaining topics of this complete DSA bootcamp as soon as possible

  • @anjalithakur_12
    @anjalithakur_12 2 ปีที่แล้ว +2

    Very good explanation just loved it

  • @requisits
    @requisits ปีที่แล้ว

    Thank you kunal finally understood the concept deeply.

  • @sravanakirtana2787
    @sravanakirtana2787 9 หลายเดือนก่อน

    Awesome. You make everything very easy. (In your words easy peasy 😅)

  • @poojakatare1497
    @poojakatare1497 8 หลายเดือนก่อน

    A very informative and interesting lecture 😎

  • @civuasdev5532
    @civuasdev5532 3 ปีที่แล้ว +1

    Hey kunal, Thanks for this course.

  • @KshitizAnand-xr1wj
    @KshitizAnand-xr1wj 3 หลายเดือนก่อน

    I really loved this sorting algorithm

  • @baap6382
    @baap6382 3 ปีที่แล้ว +1

    Wow, you are so good.
    Wish you to solve complex algorithms down the lane

  • @Content_creater_entertainment
    @Content_creater_entertainment 4 หลายเดือนก่อน +1

    Best vedio❤

  • @anshulgoel1940
    @anshulgoel1940 ปีที่แล้ว +3

    An alternative approach is to swap the pivot with the last index before we start in each recursive call and then start comparing left and right. Once index cross over, we swap pivot with left pointer. Works out much cleaner at code level.

    • @pratheeeeeesh4839
      @pratheeeeeesh4839 ปีที่แล้ว

      The approach which you told above does that calculate the pivot using the same mid concept?

    • @anshulgoel1940
      @anshulgoel1940 ปีที่แล้ว

      @@pratheeeeeesh4839 No. Pivot can be picked in any way. It won't make any difference at complexity level. This approach I suggested just keeps the code clean. Hope it helps

  • @vikaspanwar5194
    @vikaspanwar5194 3 ปีที่แล้ว +1

    thanks for uploading at this frequency.
    Hope that you will cover dp really soon. 👏🙌

  • @924_aradhyapatro5
    @924_aradhyapatro5 3 ปีที่แล้ว +1

    This is by far the simplest explaination of Quick Sort that i have found

  • @Dekh_rha_hai_vinod.
    @Dekh_rha_hai_vinod. 3 ปีที่แล้ว +2

    Bro amazing hetric👌👌

  • @suyashkumar8840
    @suyashkumar8840 3 ปีที่แล้ว +1

    Love you kunal bhai
    ♥️♥️

  • @harshaggarwal1821
    @harshaggarwal1821 3 ปีที่แล้ว +7

    @36:05 you mentioned swapping doesn't happen if array already sorted. But taking {1,2,3,4,5} it does call swap with same indices.

    • @chennayaianjc3306
      @chennayaianjc3306 3 ปีที่แล้ว +2

      I think he said , swap will not happen if it is already sorted .how? in while(s

  • @talish7714
    @talish7714 3 ปีที่แล้ว

    good job kunal and never gave up bro keep it up

  • @geetankarkarmakar378
    @geetankarkarmakar378 2 ปีที่แล้ว

    Mad stuff ❤‍🔥❤‍🔥
    Thanks a ton !!

  • @amruthaa5876
    @amruthaa5876 3 ปีที่แล้ว

    Thank you so much, Kunal!

  • @ashishgaikwad440
    @ashishgaikwad440 3 ปีที่แล้ว +1

    god level explain ❤️

  • @kirankumar9729
    @kirankumar9729 2 ปีที่แล้ว

    Fabulous explanation..

  • @absingh773
    @absingh773 7 หลายเดือนก่อน

    13:14 pivot at correct position❌every element at correct position✅

  • @mrrishiraj88
    @mrrishiraj88 3 ปีที่แล้ว

    Great thanks for very useful content in quite comprehensive form.

  • @NavanshK
    @NavanshK 2 ปีที่แล้ว +2

    @kunal Please continue this course...

  • @KartiKKaushiKYt
    @KartiKKaushiKYt 2 ปีที่แล้ว

    My profssor seriously needs to learn from this dude, I was stressing about this so much, this titorial is elite. THANK YOU SO MUCH

  • @yourmentor8242
    @yourmentor8242 3 ปีที่แล้ว +2

    Hey kunal please bring some leetcode sorting questions problem videos,and yes
    Thank you so much for this Awesome content bro ❣️

  • @dinbandhusharma4568
    @dinbandhusharma4568 ปีที่แล้ว

    thanks for this amazing knowledge
    I really like your video
    🤗🙏🏻

  • @gitansh194
    @gitansh194 7 หลายเดือนก่อน

    00:05 Quicksort is a crucial sorting algorithm frequently asked in interviews.
    02:11 Quick sort uses pivot to divide elements into smaller and larger groups.
    06:22 Quick Sort uses recursion to position the pivot element correctly after each pass.
    08:20 Quick sort uses recursion to sort arrays efficiently
    12:24 Understanding how to identify violations while sorting using Quick Sort.
    14:35 Moving the pivot to the correct position using recursion
    18:43 Picking the pivot element in quick sort
    20:34 Understanding time complexity and recurrence relation in Quick Sort.
    24:23 Quick sort's time complexity is O(n^2), covered in detail
    26:22 Recurrence relation of merge sort explained with time complexity formulas.
    29:36 Hybrid sorting algorithms combine merge sort and insertion sort for efficiency.
    31:26 Exploring new approaches to solve problems is recommended.
    34:59 Moving elements according to pivot and violating conditions
    36:36 Explanation of the swapping process and recursion call in Quick Sort using recursion.
    40:23 Quick sort is a hybrid sorting algorithm
    41:58 Quick Sort using recursion is a common sorting algorithm.

  • @randheerkumargautam6433
    @randheerkumargautam6433 2 ปีที่แล้ว +6

    will you make video on dynamic programming as well?

  • @ritviksaran6199
    @ritviksaran6199 2 ปีที่แล้ว +14

    Kunal bro this is a doubt. After a pass of the outer while loop, how can we confirm that pivot will end in correct index?
    For the array {1, 4, 2, 5, 7, 6, 3} after one pass changes to {1, 4, 2, 3, 7, 6, 5}. 5 was the chosen pivot but it does not end in correct position. The whole algorithm is correct at the end it will give the sorted array, but for this version I think we cannot confirm that after each pass pivot will end up in correct index.

    • @harcharansingh1997
      @harcharansingh1997 2 ปีที่แล้ว

      Yeah bro having same doubt

    • @ritviksaran6199
      @ritviksaran6199 2 ปีที่แล้ว +3

      @@harcharansingh1997 This method ensures that in each pass the pivot ends up in the correct index
      public class Main
      {
      public static void main(String[] args) {
      int [] arr = {1, 4, 2, 5, 7, 6, 3};
      quickSort(arr, 0, arr.length - 1);
      for(int i : arr){
      System.out.println(i);
      }
      }public static void quickSort(int [] arr, int low, int high){
      if(low >= high) return;
      int s = low;
      int e = high - 1;
      int pivot = arr[high];
      while(s pivot){
      e--;
      }
      if(s

    • @MohamedElsayed-pb3oj
      @MohamedElsayed-pb3oj 2 ปีที่แล้ว +1

      The reason you are having doubt is because the algorithm is incorrect. Tried it manually and tried it with the debugger and it still gave the first pass answer. Meaning the algorithm doesn't put the pivot in its intended location.

    • @takenbysac
      @takenbysac 2 ปีที่แล้ว

      @@MohamedElsayed-pb3oj exactly Elsayed , this algo is wrong, I tried with negative numbers as input and it failed . Tried with {2,5,3,0,8,22,9,-1,-3,-5} as input . @Kunal

    • @takenbysac
      @takenbysac 2 ปีที่แล้ว

      @@ritviksaran6199 even this got failed @ritvik for input as {2, 5, 3, -3, -1, -22, 0, 8, 22, 9}

  • @MuhammadAnas-t1z
    @MuhammadAnas-t1z หลายเดือนก่อน

    For those who were asking that the algorithm will work fine but after first pass the pivot element is not at the correct place.
    Here is the update version of the code
    public static void quickSort(int arr[],int low,int high){
    if(low >= high){
    return;
    }
    int s = low;
    int e = high;
    int mid = s + (e-s)/2;
    int pivot = arr[mid];
    while(s pivot){
    --e;
    }
    if(s

  • @akashpradhan7908
    @akashpradhan7908 ปีที่แล้ว +1

    I have tried some udemy courses, watched some TH-cam tutorials on DSA
    ... But damn.. Kunal is a teacher of another league.

  • @sourabhkothari7014
    @sourabhkothari7014 2 ปีที่แล้ว

    Best explanation

  • @akshaykumar-wd8jc
    @akshaykumar-wd8jc 3 ปีที่แล้ว

    Great video kunal

  • @jk-sm6qr
    @jk-sm6qr ปีที่แล้ว

    Thank you Kunal

  • @vanshsharma2486
    @vanshsharma2486 2 ปีที่แล้ว

    great video bro, thank you so much!!

  • @imTiwari2005
    @imTiwari2005 2 หลายเดือนก่อน +1

    bhaiya what about dp and greedy

  • @ImranicShow
    @ImranicShow 2 หลายเดือนก่อน

    Kunal, you are a great teacher. I didn't comment in all other videos because those were flawless to understand. This one was fantastic till you started implementing the algorithm. You explanation of the core algo, complexity analysis etc were awesome. However, you said, after every pass all smaller element should be left side of the pivot and all larger element should be in the right side of pivot. But in your implementation this is not the case. I mean after you swap, it just swap two elements, doesn't gurantee the position of pivot we want after the first pass. But I was wondering how your implementation still works. I traced this implementation in pen and paper and found why it's still working. It's a bit unorthodox implementation of quick sort. This doesn't work without any modification, if I change the pivot from mid to first or last.
    Anyway, I found solution in internet where they make the partition based on the pivot. Those solutions works whatever(first, last or mid) I made pivot. Overall, to me it seems this implementation may confuses the new commers.
    Anyway, your explanation of the algo is out of question, clarify a lot of confusions. Being a software engineer for more than half a decade, I recently decided to brush up my DSA and you are helping me a lot. Keep up the great work.

  • @akashnagar4862
    @akashnagar4862 ปีที่แล้ว +1

    Before starting this course, i was like ''Java is very tough language'', but after dig into this course till now, I am like ''Java is Fun'', Thankyou man for providing such great course.
    And I would like to request you that please make a course of Collection framework also.
    And you will be boom on TH-cam....trust me the way you transfer your thoughts is really amazing.
    Cheers to the hard work 🥂

  • @charon71
    @charon71 9 หลายเดือนก่อน

    best videos here!

  • @ViGyaTam
    @ViGyaTam ปีที่แล้ว

    Thanks Kunal

  • @NilavraPathak
    @NilavraPathak 3 ปีที่แล้ว +2

    I think quick select is also a closely related technique that can be used to solve many problems.

  • @karanbadhwar4113
    @karanbadhwar4113 8 หลายเดือนก่อน +2

    The problem is I did not understand the Time and space Complexity After recurrence relation, as I am do not understand the Maths that you did, it took me more than a week to any how complete the video, but now my question is how can I do that, as I did not understand them Maths you taught, any other way to solve it ?

  • @twi4458
    @twi4458 3 ปีที่แล้ว +3

    Can anyone help me in understanding 24:50, How we got O(N^2). It is Linear Recurrence Relation, Right?

    • @Rahul-nw5rp
      @Rahul-nw5rp 3 ปีที่แล้ว +1

      Yes man . For this you have to use substitute method . I checked common algorithms book and there was written that to use akra bazee method bi must be in range of 0 to 1 exclusive

    • @Sumit-lr1qj
      @Sumit-lr1qj 3 ปีที่แล้ว

      Nope

    • @vcrohithutagonna2105
      @vcrohithutagonna2105 2 ปีที่แล้ว

      Check out the Time and complexity video, You'll get a whole great idea

    • @arpitanaik4940
      @arpitanaik4940 5 หลายเดือนก่อน

      ​@@vcrohithutagonna2105 Still not able to get it. Can you plz share how to got the ans.

  • @mohammedsaad0761
    @mohammedsaad0761 6 หลายเดือนก่อน

    The video explains the quicksort algorithm in detail, covering its theory, complexity, and coding implementation, while comparing it with other sorting algorithms like merge sort and discussing internal sorting functions in Java and Python.
    Detailed Summary for [Quick Sort Using Recursion (Theory + Complexity + Code)](th-cam.com/video/Z8svOqamag8/w-d-xo.html) by [Monica](monica.im)
    [00:04](th-cam.com/video/Z8svOqamag8/w-d-xo.html&t=4) Understanding the importance of Quicksort in sorting algorithms
    - Introduction to Quicksort and its significance in interviews}
    - Covering the complexity, time, space, code, advantages, and disadvantages of Quicksort}
    - Exploring internal sorting algorithms and hybrid sorting techniques}
    [05:15](th-cam.com/video/Z8svOqamag8/w-d-xo.html&t=315.199) Explanation of quick sort using recursion
    - Explanation of partitioning elements based on a pivot}
    - Role of recursion in sorting process}
    - Unique aspect of pivot placement in quick sort}
    - Recursion's role in sorting the left and right partitions}
    - Selection of a new pivot element for further partitioning}
    [10:33](th-cam.com/video/Z8svOqamag8/w-d-xo.html&t=633.44) Explanation of how to perform quick sort using recursion
    - Explanation of selecting the pivot element}
    - Identifying violations in the elements compared to the pivot}
    - Fixing violations by swapping elements}
    - Comparison and handling of elements in relation to the pivot}
    [15:49](th-cam.com/video/Z8svOqamag8/w-d-xo.html&t=949.04) Explanation of the quick sort algorithm using recursion
    - Explanation of choosing the pivot and dividing the array}
    - Demonstration of the pivot at the correct position}
    - Discussion on picking the pivot element}
    - Introduction to complexity analysis}
    - Partitioning the elements based on the chosen pivot}
    [21:07](th-cam.com/video/Z8svOqamag8/w-d-xo.html&t=1267.12) Understanding the time complexity of Quick Sort using recursion
    - Explaining the time taken to put the pivot at the correct position}
    - Discussing the recurrence relation of Quick Sort}
    - Analyzing the worst-case scenario in Quick Sort}
    - Illustrating the impact of choosing the smallest or largest pivot element}
    - Highlighting the consequences of the worst-case scenario in Quick Sort}
    [26:22](th-cam.com/video/Z8svOqamag8/w-d-xo.html&t=1582.48) Explanation of time complexity and space complexity in Quick Sort
    - Detailed explanation of time complexity using Akra-Bazzi formula}
    - Importance of understanding space and time complexity in algorithms}
    - Best case and worst case complexity of Quick Sort}
    - Stability of algorithms and the concept of stable sorting}
    - Previous video covering sorting algorithms and stability in detail}
    [31:40](th-cam.com/video/Z8svOqamag8/w-d-xo.html&t=1900.48) Introduction to Quick Sort Using Recursion
    - Starting the coding part for quick sort}
    - Explaining the concept of low and high indices}
    - Using pointers to manipulate the object in the array}
    [36:57](th-cam.com/video/Z8svOqamag8/w-d-xo.html&t=2217.68) Explanation of quick sort using recursion and its implementation
    - Explanation of the recursion process in quick sort}
    - Dividing the array into two halves for sorting}
    - Initialization of low and high variables for sorting}
    - Discussion on different approaches to quick sort}
    - Recommendation to try other sorting methods before asking for help}

  • @abhirajchatterjee6965
    @abhirajchatterjee6965 5 หลายเดือนก่อน +1

    This partitioning algorithm seems to be incorrect, say we take the same example provided in the video wherein the last element is always selected as the pivot -
    10, 80, 30, 90, 40, 50, 70 | p = 70, s is at 10, e is at 70
    now, s moves till 80 where it finds a violation (element at s should be less than 70, here it is > 70), e stays at 70 since it is also a violation(element at e should be greater than 70, here it is = 70 ), swapping happens -> array after first swap -> 10, 70, 30, 90, 40, 50, 80 -> s moves to 30, e moves to 50
    notice that the new part of the array which is going to be partitioned now is 30,90,40,50 and the rest is assumed to have been placed correctly w.r.t the pivot that is 70, which is wrong as 70 is clearly not at the position where it is supposed to be.

    • @siddharthgowd825
      @siddharthgowd825 23 วันที่ผ่านมา

      you were wrong, dont partition array after single swap, go unil i

  • @anukritisingh4479
    @anukritisingh4479 2 ปีที่แล้ว +2

    pls upload dp series soon

  • @shyamalm88
    @shyamalm88 3 ปีที่แล้ว

    Kunal Facing too much problem with sliding window technique. with strings and other things, it will be very helpful if you can create a video on this with solving some problems, not only the maximum sum problems but other problems also some tips or tricks will be fine.
    Love your work. your content really helpful.

  • @programmer6953
    @programmer6953 ปีที่แล้ว

    At 23:07 i dont get why we put pivot at middle while showing t(n) calculation ,at t=0 the left will be empty but right will be n-1 element does it mean we picked first element as pivot ?if not why we showing pivot in t(n) calculation why not just t k +t n-k + alfa n supposedly pivot is at the end of the array for better presentation pls enlighten me on this..

  • @rudram4534
    @rudram4534 2 ปีที่แล้ว

    still watching consistently
    😀😀
    😀😀

  • @firdoshansari2757
    @firdoshansari2757 3 ปีที่แล้ว +4

    Hey Kunal, what is the possibile time you take to complete dsa and start with Opps??

  • @bishalbhattacharjee850
    @bishalbhattacharjee850 3 ปีที่แล้ว +1

    Great teaching please make a video on heap sort as well...

  • @abhisheknigam6975
    @abhisheknigam6975 10 วันที่ผ่านมา

    Thanks for this series Kunal, just have one question that how would we do this with return the result, as at the 2 last lines of the code we are again calling the function so to write return statement there

  • @smilemania5102
    @smilemania5102 3 ปีที่แล้ว +1

    Awesooooooooooooome ❤️❤️

  • @abhijitmanna4524
    @abhijitmanna4524 2 ปีที่แล้ว

    My java code is not compiling at 38:21 any solution ?

  • @dineshmadduru7043
    @dineshmadduru7043 6 หลายเดือนก่อน

    Thank you sir

  • @ayushmaheshwari809
    @ayushmaheshwari809 ปีที่แล้ว +1

    Hey Kunal , why pivot element not place correct index after one recursion call ? Although the array is sorted in the end .

  • @frosted_soul_
    @frosted_soul_ 2 ปีที่แล้ว

    ku ku ku kunal...kunal....kunal.....kunal.....

  • @moneshc6887
    @moneshc6887 2 ปีที่แล้ว

    Please do something such that if I search for quick sort this videos should come first.... : ) The only video required .Thanks Kunal

  • @suhaibalam1040
    @suhaibalam1040 ปีที่แล้ว

    Thanks a lot man

  • @Videolyy
    @Videolyy ปีที่แล้ว

    loved it..

  • @MainakBhowmick-vw3sh
    @MainakBhowmick-vw3sh 5 หลายเดือนก่อน +2

    13:05 oops i think i made a mistake ,, and that look

  • @RaviPatel-rj1re
    @RaviPatel-rj1re 2 ปีที่แล้ว +2

    this quick sort algorithm not given correct ans for (5,4,1,2,8,7,6,3) can you explain it why?

    • @amine_fadssi
      @amine_fadssi ปีที่แล้ว +1

      use variable int pivot = arr[mid] not just compare with arr[mid] directly

  • @kishorevb8331
    @kishorevb8331 4 หลายเดือนก่อน +2

    With the code you provided, it will not place the pivot at the right spot after one pass, but still it works!!!
    It doesn't place the pivot in the right index due you incrementing and decrementing the start and end after each swap.
    We must increment and decrement only when provided that the value in that index is lower than or higher than the pivot

  • @itsom5294
    @itsom5294 3 ปีที่แล้ว +3

    Hey kunal bring some leetcode maximum subarray type questions problem videos

  • @jacksongeorge4047
    @jacksongeorge4047 3 ปีที่แล้ว +1

    hey can you make a video about how to apply remote jobs ...

  • @gowthamselvaraj7793
    @gowthamselvaraj7793 ปีที่แล้ว

    Do a separate series for Dynamic programming bro..

  • @LifeWithGunjann
    @LifeWithGunjann ปีที่แล้ว

    Can you please continue this course and complete it soon

  • @prashantgoswami1491
    @prashantgoswami1491 2 ปีที่แล้ว +1

    Kunal i am waiting for some other topic vedio please kindly upload it
    I am going to have my placement in next sem

  • @prashantmishra9220
    @prashantmishra9220 2 ปีที่แล้ว +1

    @kunalKushwaha
    Bhaiya aapne to book follow krke pdhai ki hogi....to hmlog sirf is playlist ko follow krenge kya sach me utna hi knowledge gain kr paenge...kya is playlist me jitna pdhaya gya hai utna hi pdhne se sach me acchi job crack kr paenge?
    pls reply

  • @parmarkamlesh6493
    @parmarkamlesh6493 ปีที่แล้ว

    Hi Kunal, are you planning to launch any playlist?