Python Tutorials - Quick Sort Algorithm | Program | Part-1

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

Комментарии •

  • @nithunraj7752
    @nithunraj7752 2 года назад +5

    Usually I don't spare time for comments. But I can't really go back without appreciating you for this explanation and easy code. Thank you!!

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

    Mam ur way of speech is very good,with clear voice nd explaination

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

    Appreciation from my side. When I have any doubt, I come to see your videos to clear those..

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

    Mam, you are a superwoman, you teaches so nicely, thanks for the hard work you are doing for us.

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

    wasted whole day t learn but at the end I learned here

  • @slater-cguy
    @slater-cguy Год назад +1

    The best DSA lectures on youtube, thank you, @AmulsAcademy !

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

    Great quick sort.you can do ascending or descending order.great video

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

    I always got confused how quick sort work but after seen ur vedio i did understand in better way, thank u so much mam for ur deeply explanation ❤

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

    Great explanation fantastic...😇😇😘😘

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

    Mam, very very very very thank u.
    Amazing Explanation Thank u.

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

    Traceback (most recent call last):
    File "M:/Python/QuickSortTest.py", line 25, in
    Quicksort(list1,0,n-1)
    File "M:/Python/QuickSortTest.py", line 20, in Quicksort
    Quicksort(list1,first,p-1)
    TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'
    > error is coming.

    • @AmulsAcademy
      @AmulsAcademy  5 лет назад +2

      def pivot_place(list1,first,last):
      pivot=list1[first]
      left=first+1
      right=last
      while True:
      while left

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

      @@AmulsAcademy even I am getting Sam error mam

    • @HarshSharma-ow2pe
      @HarshSharma-ow2pe Год назад

      @@AmulsAcademy error geetting in this code please gave another example for this.

    • @HarshSharma-ow2pe
      @HarshSharma-ow2pe Год назад

      hi bro ,if you have clear this error then please tell me how

    • @HarshSharma-ow2pe
      @HarshSharma-ow2pe Год назад

      ​@@AmulsAcademytell me mam

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

    Mam how can I sort integers in a queue in descending order without using built functions

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

    I can't find a teacher like you

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

    it is a great tutorial.thank you so much for this

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

    Hello,Mam when u will statt data structures in python??,we are waiting for that

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

    Madam after swap the pivot position to right position .so right position is pivot.. right...after div the list again do same process but in the program no repeated the process..

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

    same program i written in visual studio code but complier gives some mistakes but i follow proper indiation why it shows it shows like that so ple give me reply

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

    Explain clearly ,thanks

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

    how sublists are sorted recursively i dont understand that when you writye quick sort function can you please explain me

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

      Take one example and trace the program 😊

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

    hi madam, how can we know when to use function and when not to use function???because in previous sel sork and quick sort we didnt use function and here u are using function so plz expalin that

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

      If the part of code need to be executed again and again you need to use functions :)
      In other cases if you want you can use functions :)

  • @faheemashraf6051
    @faheemashraf6051 6 лет назад +1

    Thank You>>>>>>>>>>>>>>>>>>>>>>

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

    But y list1 [ first ] and not list 1[pivot] where as you were able to take list 1[ right] but not pivot y.
    Also in the recursive case why can't we use if condition i.e if list1> 1. As the base condition

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

    it is raising index out of range when we give input [5,4,3,2,1]..once check

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

      Give me the program I will check :)

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

      @@AmulsAcademy please check with ex 5,4,3,2,1 I'm getting index out of range

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

    cant we use for loop for execution

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

    Can you help me mam, why this swapping method is not working ?

    • @AmulsAcademy
      @AmulsAcademy  5 лет назад

      Give me the program i will check :)

  • @rahulsanapathi2305
    @rahulsanapathi2305 7 месяцев назад

    why did you use while true what is the meaning

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

    Thankyou You are amazing.

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

      Glad to hear that :)

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

      @@AmulsAcademy hey I need help can you please suggest me topics that I must learn to get a job pleeeease.

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

      Be clear with at least one language and also few programs like prime numbers pattern programs...

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

    amazing tutorial. Do you think you could do a tutorial on quick select?

  • @SachinYadav-qe3gb
    @SachinYadav-qe3gb 3 года назад

    Thanks, I saw lots of video but only here I understand. Once again thanks

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

    Ma'am , What's the time complexity of pivot_place function?

  • @smileplz1334
    @smileplz1334 6 лет назад +1

    Mam, how to replace Input with Replace Module

    • @AmulsAcademy
      @AmulsAcademy  6 лет назад

      list1 = []
      list1 = [eval(input(":")) for i in range(5)]
      print(list1)
      list1[2] = "hello"
      print(list1)
      :)

    • @smileplz1334
      @smileplz1334 6 лет назад

      @@AmulsAcademy
      Print("Thanks ")

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

    Getting error as unsupported operand type for -: ' NoneType' and 'int'

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

      I'm also getting this same error...if you know the solution please let me know

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

      Same here

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

    Thanks Mam, I really like your teaching style! : )

  • @Indian-fh8hf
    @Indian-fh8hf 5 лет назад +1

    please make a video on "LINKED LIST "

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

    Easy explanation but it's showing a error TypeError unsupported operand type(s) for 'NoneType' and 'int'

  • @432aniketkadam4
    @432aniketkadam4 3 года назад

    Please make video on krushkal Minimum spanning tree

  • @nachiappanrm1915
    @nachiappanrm1915 6 лет назад

    Mam, i am a cse student. i had python mini project in this semester! I don't have any idea abt that can u suggest me a best topic that seems to be the best one in our class ,mam?

  • @saitarun6562
    @saitarun6562 5 лет назад

    iam noticed that you said 14:21 right

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

      She is checking index value not the list value that is 5

  • @krishnavamsinadharikatla5150
    @krishnavamsinadharikatla5150 6 лет назад +1

    Thank you very much mam

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

    mam how to accept the list from user

    • @AmulsAcademy
      @AmulsAcademy  5 лет назад

      You can use list comprehension method.
      :)

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

    What is p = pivot_place(list1,first,last) ?

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

      pivot_place function is returning the right index which is stored in p

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

    Madam It is very useful if u post hackerrank solutions

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

    thank you mam☺

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

    Please do linked List in python

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

    Thnak U madam

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

    U r the bEst❤️

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

    Mdm how to exicute program repeat

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

    It is totally complicating when compared to other similer vedios.

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

    How python knows that the first = the 0th INDEX of the list and the last= last index of the list? we've given it as arguments.

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

    thanks SIR

  • @krishnavamsinadharikatla5150
    @krishnavamsinadharikatla5150 6 лет назад +2

    Please do program on tower of Hanoi mam

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

    def pivot_place(list1,first,last):
    pivot=list1[first]
    left=first+1
    right=last
    while True:
    while left