Quicksort sorting algorithm - Inside code

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

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

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

    You have no idea how good your videos are.

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

      That's super kind, thanks a lot

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

    there is an error in the code, in partition function on one of the two inner while loops that increment the left position and decrement the right one you need to put = instead of > in the second while loop) or else the code will loop infinitely if there are two values that are the same in the array because it will swap them infinitely

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

    Can you tell how O(logn) space complexity in worst case scenario? Your vedios are really good. One suggestion is to reduce the speed it's difficult to follow. Thanks

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

      Worse case scenario would be if the elements are already sorted ... I think O notation would depend on how you chose the pivot point .. I was told it would be worse than log n

  • @mr.mirror1213
    @mr.mirror1213 2 ปีที่แล้ว +1

    the speed was a little too much