QuickSort Algorithm in Hindi (With Code in C)

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

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

  • @Hustler...01-MV
    @Hustler...01-MV 2 года назад +4

    the best teacher ever i saw . you explained the topic every eazy. the clg teachers are making to complicated .

  • @freekeys
    @freekeys 4 года назад +213

    Sir ji You'r Debugger of our life ❤️😂

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

      sir maja aa gay

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

      @@thorcoder1 gay?😂🤣😂

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

    Toughest sorting algorithm till now but finally understood just because of harry bhai's hardwork

  • @patrickhudson5168
    @patrickhudson5168 3 года назад +92

    For those having problem in understanding anything, I would advise you to start practicing questions on any website. Then after sometime, continue with this series and you will find it a bit easier to understand. This worked for me👍

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

      websites like??

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

      @@mohitsharmagarg Hackerrank, codechef, codeforces, etc.

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

      from where r u

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

      @@patrickhudson5168 thankYou

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

      bro DSA hi clear nhi h to question kaise practice krenge.. your suggestion is good but it can be taken vice-versa. (my case)

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

    सर जी, आपका प्रयास प्रसंशनीय हैं।।
    सादर प्रणाम स्वीकार करें।। 🙏🙏🙏🙏🙏

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

    Bro you are great one . Aap ke pass difficult ko bhi easily solve krne ka method h...

  • @VikashKumar-ox2hv
    @VikashKumar-ox2hv 4 года назад +21

    37:28 Minimum 2 elements should be there ( this is what the if condition says ) because if there will be only one element means it already sorted and our code execution will not go inside the IF condition block.

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

      how can the low become greater than the high in that condition ? Can you help please its confusing me

  • @rohansengupta667
    @rohansengupta667 3 года назад +68

    LITERALLY, THE TOUGHEST TOPIC TILL NOW IN DSA COURSE. THOUGH IT TOOK A LITTLE BIT MORE TIME BUT ULTIMATELY UNDERSTOOD COMPLETELY. DID THE DRY RUN TOO, AND THAT MADE THE WHOLE THING CLEARER.

    • @pranitp.29
      @pranitp.29 2 года назад +10

      bhai chilla kya raha hai

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

      @@pranitp.29 Tero ko kya hai reh

    • @pranitp.29
      @pranitp.29 2 года назад

      @@souled_blink ok

  • @tanmoydutta5846
    @tanmoydutta5846 2 года назад +15

    As usual, beautiful explanation of one of the most difficult algorithms

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

    Bhai maine C ar java seekh lii pr quicksort itna detail me smjh ni paya tha....maza agyii yr.. concept baitha diya

  • @Karthik-kt24
    @Karthik-kt24 3 года назад +4

    Best guide for Coding🙏Thanks very much bhai...ek hi go me sab clear kar diya...you are very good teacher and it shows that your concepts are super clear🙏🙏May God bless you bhai🙏

  • @sumiuma5756
    @sumiuma5756 9 месяцев назад +1

    Samajh me nahi aa rahi thi to thodi si crochet video dekh k crochet karna Sikh liy uske baad dobara se video dekha toh samajh aa gayi.. aur Harry bhai tum itna acche se samjhate ho ki samajh me to ana hi tha.. bohot kamiyaab ho tum age Jake zindagi mein yehi aasha rakhti hu mera chota bhai...

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

    harry bhai ek doubt hai apne bataya ki i aur j jab cross honge tab swap karna hai but apne if mein i

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

    seriously, one of the toughest topics of DSA till now, and harry bhai has made it so easy for all of us using his creative analogy! love u harry bhai!!

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

      Koi batayega yaha do - while loop q lagaya hai

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

      @@harshsingh6451 basically do variables iterate karwa rahe hain with different conditions therefore two while loops

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

      bro is low means zero by default. I mean he didn't create any variables low and high & declare them, how program knows that low =0 and high=size-1 ? pls clarify

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

      sorting sabse easy hoti hai dsa mein'

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

      beta merge sort aur mushkil h

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

    Best explaination of quick sort till now. Thank you harry bhaii . You are a great teacher. You exactly know where one would have problem understanding and you make that thing crystal clear. Great hardwork for the explanation.

  • @power_bgmi
    @power_bgmi 2 года назад +6

    Literally took two whole days to understand, but when it did. It was the best feeling ever. Thank you harry bhai for the in-depth explaination, WE OWE YOU ONE!

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

    Mazza aa gya harry bhaii...
    Aatma trupt ho gya sham ko...
    Dil khush ho gya...
    Love you bhaii...♥♥

  • @achintya-7
    @achintya-7 3 года назад +3

    I haven't seen a better explaination of quick sort than this
    Thank you bhaiya

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

    Bahut acha bataya bhaiya ek baar mein samaj aagya

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

    Bhai apki way of explanation is extraordinary. 🙏🙏🙏🙏🙏Salute🙏🙏🙏🙏🙏

  • @ManishSharma-fi2vr
    @ManishSharma-fi2vr 4 года назад +2

    Aapke prayas bohot important and helpful h

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

    Thankyou harry bhai quick sort clear hai abhi...........

  • @tanishadixit_
    @tanishadixit_ 3 года назад +109

    We people are not only learning dsa, we are learning how to teach as well... ❤️

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

    You haris khan thara bhai haris khan quick sort ko itna asan banadega itna asan bandega viewers ne sochi na hogi

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

    Amazing explanation as always, helped me understand the concept . Keep uploading these types videos and notes, this will be very helpful for students like me who can't understand the concepts in college properly, due to their boring methods. Big fan of yours Harry sir

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

    the example that u had given at the starting is really helpful to us , thanks

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

    if you don't wanna use do while loop in partition function then use while(i

  • @sikandarkumar7563
    @sikandarkumar7563 4 года назад +10

    0:29
    sir ji ko apne bachpan ki yaad aa gyi kya bolne wale the awesome sir eise Sikhao

  • @music_lover_infinity
    @music_lover_infinity 3 года назад +5

    very helpful, make more videos on DSA sir your way of teaching is better then others.

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

    I love this type of desi learning

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

    Sir, you make really good videos. Please continue this DS series. We would be really thankful..

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

    Really nice examples and your hard work is really appreciable 🥰🥰

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

    Yes sir ,such type of anologies make our learning easy ,interesting

  • @umeralikhan6950
    @umeralikhan6950 9 месяцев назад +1

    Thank you for making the video of quick sort this analogy really helped me to learn and understand the concept of quick sort. Love from Pakistan ❤❤❤

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

    Harry bhai ab to app dil main bath gya ki apki vedio dekhte hi like ki bottom dba deta hoon 🤓🥰🤗😁 .
    Love u Harry bhaiya ❤️❤️❤️

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

    In video you explain right but in source code there is decending order
    Because of statement in while loop
    while (A[i] pivot)
    {
    j--;
    }

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

    This is not easy thing to teach quick sort easily but you made it this show your dedication and impressive vast knowledge about coding awesome i like it and thanks for this hard work sir

  • @MrSaint-ch6xn
    @MrSaint-ch6xn 4 года назад +82

    ➡️01:12 agar tum school gaye ho kabhi GALATISE toh........😂😂😂😂😂this makes me laugh so hard

  • @tarun._17
    @tarun._17 Год назад +1

    Thank You to my confidence Back sir ...😌

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

    Thank u for such a clear explanation , it helped me a lot, to get how actually this quick sort program works.

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

    Wowww that's amazing harry sir
    You explanation method is lajwab...

  • @AbdulRahman-xl9jh
    @AbdulRahman-xl9jh 2 года назад +3

    Sir Your way of teaching is awesome. ❤️😊

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

    Mast way h samjhaane ka

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

    Sir, According to me this topic better than ur way no one can understand.
    Bt sir i try this concept to understand so many times bt after watching this video i realise that in this concept nothing is there . And Sir u take the very good examples to thing and concept more clear in a better way.
    Keep it Sir .
    My Full Support is with You.

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

    I love your teaching methods sir❤️❤️❤️

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

    1st class example hai bhai kaha se late ho ayese examples , samjhate raho just like this.👍

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

    Thank you so much sir for giving code free thank you

  • @VIVEKKUMAR-cs7ye
    @VIVEKKUMAR-cs7ye 3 года назад +1

    Harry Bhai your heart is so big.

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

    What an amazing teacher..Explaining such a tedious concept in a very simple way...Thank you so much Sir..❤️❤️❤️

  • @4867Geyan
    @4867Geyan 3 года назад +1

    Harry bhaijaan you are the best teacher 😌😌😌😀 love you bhaijaan that's great explain and 😊😊😊😊

  • @SachinKumar-cp1bj
    @SachinKumar-cp1bj 3 года назад +102

    00:27 Yeh bache n itne "HA_NALAYAK" hai....... good cover sir.....🤣🤣🤣🤣

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

    Never thought that the swap I learned as basic is soo useful

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

    sir ap difficult se difficult algo ko bhut aasani se smjha dete ho......Thank You

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

    12:34 Aapke examples bahut related hote hain, topics se ❤

  • @HarpreetKaur-wb2sk
    @HarpreetKaur-wb2sk 3 года назад +2

    Excellent way of teaching

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

    Harry bhaiya done with this thank you 52:11

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

    13:40
    As per I understand this the code should be one for loop starting from pivot+1 till the end of array which will check for values greater than the pivot value and then stop there and another loop starting from length-1 till the pivot+1 and check for values lesser than the pivot value and then stop there. To stop it we can use the break statement and have a variable to store the values of i and j of that iteration. But what I can't understand is how will I run it again?
    and if I were to use a while loop to iterate over it then the time complexity of this code will be O(Q(a+b)) which I think is really slow

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

    bhai asay hi samjhaya karo acha samajh ata
    btw love from Pakistan

  • @skullcandy-dp9nr
    @skullcandy-dp9nr 2 года назад +2

    thank you are like a big brother for me

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

    you are the best sir,Thanks for presenting it beautifully🥰🥰🥰🥰🥰🥰🥰🥰

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

    highly recommended this channel, sir has explained clearly, after watching his videos i have no doubt

  • @RahulDas-vq4ol
    @RahulDas-vq4ol 3 года назад +2

    Sir aap bahut mehnat karte hai thanks for your hard work ❤️, humko quick sort samjh aa gya ✌️✌️

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

      Koi batayega yaha do - while loop q lagaya hai

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

    mza aa gya op explanation i watched this video twice and its fully clear to understand 🤩

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

    I have successfully invested my time on right place

  • @Neerajkumar-xz5fj
    @Neerajkumar-xz5fj 2 года назад

    sir first teacher hai jo itne easy way me phada ta hai fan ho gya me(:

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

    lovely efforts by you sir,really very interesting and educational

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

    Sir You said in partition point 6 j < i But in code you wrote I < j. Please clarify

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

      @Neen s The starting point of j = n-1(for instance 5 -1 = 4) and the starting point of i = low + 1(for instance 0 + 1 = 1) so it basically means that j should always be greater than i for the swap to work between A[i] and A[j]...as soon as j

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

    Harry bhai thanks a lot for these videos,they help a lot! Please make one on heap sort as well

  • @AbhishekSingh-cu1fe
    @AbhishekSingh-cu1fe 2 года назад +1

    Harry Bhai u Explain most complicated concepts also in Very very easy way.❤️

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

    harry bro its my humble request pls think about the solving some competitive coding on the dsa after this

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

    First thing muze lga ki 50 min ka hai isse skip kr du, then jab video play kiya toh isel leave krne ka thought nhi aaya....
    Thank you so much Harry bhai for such a great course 🙏🙏🙏

  • @AbhishekSingh-nz4jj
    @AbhishekSingh-nz4jj 3 года назад +3

    thankyou bro for putting so much effort.🤗

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

    Love you brother from Bangladesh. ❤❤

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

    I have watched 200+(till now) videos of Harry bhai, but this was the best

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

    How do you make every topic so simple? Love the way of your teaching

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

    Aap bahut achha samjhte hai bhai Arduino nahi chhutna chahiye bhai please please

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

    I love miss quicksort 😃🥰pyaar ho gya 🥰🥰😃😘😘

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

    Crystal clear explaination

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

    Code debugger of my life - Harry bhaii😍♥💫✨

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

    thank you for everything harty bro

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

    Thank you so much for this awesome
    explanation sir!

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

      hey can u tell me prinntarray funtion m array pass kiya h wha * q lgaya h???

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

    Java programming me DS par video chahiye please sir
    Java language ki video pura follow kiye hai jo notes ke sath pdaiye hai or Java One video bhi or purane playlist Java ka bhi .
    Please Sir DS or algorithm par bhi video chahiye

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

    great vedio

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

    Bhaiya starting me bahut acha trick use Kiya batane ka ab bhulenge nhi thank you bhaiya ❤❤

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

    12.39 apke prayas bohot accha lagta hai

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

    in chrome browser the F12 Developer tools can be used for hacking and editing websites so please make a video series on its hacking.
    your videos are greate

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

    Thank you sir you help me to learn very easily

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

    really nice way of teaching

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

    The way u teach is amazing sir.

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

    God Bless You 🙏😇

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

    You are the best!

  • @pankajjangra4641
    @pankajjangra4641 6 месяцев назад

    Dil khush kr diya bro❤❤

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

    best ever video on quick sort

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

    Is Python language okay for software development?
    My humble request is to make a video on this.

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

    your analogy are relatable to topic and it also create interest

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

    Thank u ❣️
    please make a video on binary tree

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

    In cllg this topic was annoying but now I love this topic 😊😊thanks Bhaiya for making me understand

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

    Harry bhai.... Legend

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

    while (i < j);
    // Swap A[low] and A[j]
    temp = A[low];
    A[low] = A[j];
    A[j] = temp;
    return j;
    how is it while (ij) if we are swapping a[j] with pivot element A[low] ??🤔🤔🤔🤔

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

    Mast example tha Harry Bhaiya.