Quick Sort | Code and Explanation | C++ Course - 19.2

  Рет қаралды 396,828

Apna College

Apna College

Күн бұрын

Complete C++ Placement Course (Data Structures+Algorithm) : • C++ Full Course | C++...
Telegram: t.me/apnikaksh...
Instagram: / dhattarwalaman
Notes of this Lecture:drive.google.c...

Пікірлер: 256
@shreyaschavhan5522
@shreyaschavhan5522 3 жыл бұрын
> Quick Sort - 0:00 > Quick Sort Function Algorithm - 1:15 > Partition Function Algorithm - 4:43 > Code - 8:10 > Time Complexity - 11:45
@pijushbasak4273
@pijushbasak4273 3 жыл бұрын
@Philip Adrien Sale har comment k niche tum Instra Password hacking ki bat karti ho. Coding sikhne ayi ho ya Advirtisement karne?
@codingarjuna8677
@codingarjuna8677 3 жыл бұрын
@@pijushbasak4273 😂😂 delete kar dia usne
@CharansInsights
@CharansInsights 5 ай бұрын
Does anyone have pdfs of all lectures Its not available now in decription Do share it if anybody has it
@ChessKaChaskaa
@ChessKaChaskaa 3 жыл бұрын
Kya behtreen tarike se sikhaya hai mam ...wow awsome...........very thank of you
@parthmittal5625
@parthmittal5625 4 жыл бұрын
informative video as always! Note : The swap function is inbuilt in C++, saving some time!
@palashagrawal2343
@palashagrawal2343 3 жыл бұрын
lol swap is only at strings functions
@parthmittal5625
@parthmittal5625 3 жыл бұрын
@@palashagrawal2343 Well, you could try it to believe it.
@bhavuktomar7935
@bhavuktomar7935 3 жыл бұрын
@3:37 the partitioning will be done around 6 because swap(i+1, r) will swap 2 and 6
@santhosh7042
@santhosh7042 2 жыл бұрын
yes, after watching many yt tutorials, literally the animation and way of teaching line by line made quick sort easy
@mohammedsaqlain9856
@mohammedsaqlain9856 4 жыл бұрын
Bhaiya we dont no how to thank u, u and ur team may always be happy. Thank you very much "apni kaksha"🙏🙏🙏
@RaNd0MiZeD
@RaNd0MiZeD 3 жыл бұрын
www.amazon.in/Object-Oriented-Programming-C-4e/dp/8131722821/ref=sr_1_2?dchild=1&keywords=robert+lafore&qid=1607740393&sr=8-2 Best OOPS book MRP 800 Sale Price: *** ( Limited Stocks) & if finished check on Flipkart also
@rutvikrana512
@rutvikrana512 4 жыл бұрын
Quick sort is amazing and fast algorithm. In average case it gives O(n*log(n) ) complexity. Best way to select pivot is to select it randomly. (Not by middle element) Quicksort is one of the fastest sorting algorithm, so C language provide separate qsort() inbuilt function. C++ sort() vs C qsort() Always remember c++ sort() is hybrid algorithm ( using different algorithms for different situations ). So sort() is more faster than qsort() in average cases. Happy learning 😊
@hi-xu5ee
@hi-xu5ee 4 жыл бұрын
Bro in which college and year are you studying
@rutvikrana512
@rutvikrana512 4 жыл бұрын
@@hi-xu5ee ... last year of medical college. 😂 I love CS, so I am learning myself.
@hi-xu5ee
@hi-xu5ee 4 жыл бұрын
@@rutvikrana512 😂😂
@vimalslab3398
@vimalslab3398 3 жыл бұрын
@@rutvikrana512 bruh
@marcusaureliusregulus2833
@marcusaureliusregulus2833 3 жыл бұрын
Lol. Medical school not busy enough for you? Heard you guys have crazy hours
@hirdeshkumar6648
@hirdeshkumar6648 3 жыл бұрын
Mam very big Thanks to make this Sorting very easy with the help of animation. I really appreciate yourself with all my heart 🙏🙏.
@nomita2432
@nomita2432 4 жыл бұрын
uff what a video..really loved it .!!! saving my comment for future
@tawseeftaher9109
@tawseeftaher9109 Жыл бұрын
Partition(arr[], l, r){ pivot = arr[r]; i=l-1 for j=l to r-1 if arr[j] < pivot i++; swap(i,j) swap(i+1, r) return i+1 }
@mujammilpinjara1537
@mujammilpinjara1537 4 жыл бұрын
Today one more step for C++ placement series.👍❤️
@harshitrathi3077
@harshitrathi3077 4 жыл бұрын
Thankyou For This Speed. Fixed The Place Till 3rd Dec 😍😍
@dipenchavda6988
@dipenchavda6988 3 жыл бұрын
Man this was far better than what I was taught in college... Thank you.
@aaditpatil4727
@aaditpatil4727 3 жыл бұрын
You guyz are getting taught in colleges?
@MYSTIC_ABYSS
@MYSTIC_ABYSS 3 жыл бұрын
@@aaditpatil4727 yo, I literally saw this comment and was going to say the same thing 😂😂
@swastikrana2670
@swastikrana2670 3 жыл бұрын
mst joke mara🙂
@ѕнвнм
@ѕнвнм 2 жыл бұрын
She is women
@amitpandharikar2377
@amitpandharikar2377 2 жыл бұрын
Exactly
@vaibhavbelekar4653
@vaibhavbelekar4653 2 жыл бұрын
Teacher need to teach like mom. Punishment like dad.
@gauravsinghrathore9000
@gauravsinghrathore9000 3 жыл бұрын
short and best video on quick sort
@oqant0424
@oqant0424 3 жыл бұрын
simplest and best ever video seen on youtube
@maulikshah28
@maulikshah28 3 жыл бұрын
I am really liking this course Thank you aman bhaiya and all the teachers of apni kaksha
@muhammadibrahimkhan7052
@muhammadibrahimkhan7052 2 жыл бұрын
I really appreciate your efforts thanks ...
@ranarehan9185
@ranarehan9185 2 жыл бұрын
one of the really best video found ever on whole internet
@chzain9390
@chzain9390 Жыл бұрын
Your way of study iss very easy and when you smiling during lecture then my all the confusion is solved out... 😘. Thank you mam.. ❤️
@Tbm4545
@Tbm4545 2 жыл бұрын
Kutch samaj mein nahi aya
@enjoy111-q1v
@enjoy111-q1v 5 ай бұрын
wow didi, aapne toh samjha dia
@mayanktiwari2958
@mayanktiwari2958 3 жыл бұрын
beautiful voice with great explainagion skill, thank you man
@St.LaurentDon
@St.LaurentDon 4 жыл бұрын
Bhaiya Master's Theoram par video i think ki nahi aayi hai...
@akshays301
@akshays301 3 жыл бұрын
Thank you didi, form this video understand very easily
@sankeerthajith8070
@sankeerthajith8070 4 жыл бұрын
This is a request please make a vedio on mtech ,mtech benifits and most importantly M-TECH FROM IIT🙏
@sankeerthajith8070
@sankeerthajith8070 4 жыл бұрын
Guys please like this comment So that HE notices it
@debupatra2333
@debupatra2333 3 жыл бұрын
didi, you should be paid as much as a college professor for these explanations
@purnendumishra2614
@purnendumishra2614 2 жыл бұрын
Sir, Please provide the note of this lecture,it shows that notes is in owners bin folder
@dhwanidabhi1226
@dhwanidabhi1226 7 ай бұрын
Thank you so Much For This Video ❤❤❤❤
@anujjadhav2771
@anujjadhav2771 3 жыл бұрын
awesome, it made the concept easy to learn.
@sahilsawal
@sahilsawal 4 жыл бұрын
Awesome Ma'am & Sir :) 🔥😇👍✌🙏👌👏
@vibhashkumar5554
@vibhashkumar5554 4 жыл бұрын
Only legends know video length is 15:24 ,before the video premieres
@niladriroy1665
@niladriroy1665 4 жыл бұрын
Are bhai tu kaise bata rha hai?
@harshulagarwal1755
@harshulagarwal1755 4 жыл бұрын
@Varun Shastry sahi toh hai
@kartikchausali1598
@kartikchausali1598 3 жыл бұрын
In lecture we were told that its our choice to choose pivot i guess Amd if thats the case then why don't we always choose median element as pivot ?
@irshadali-xx1ms
@irshadali-xx1ms 3 жыл бұрын
you can choose either first, median and last but logic would be different for each \
@tarangpatil6952
@tarangpatil6952 3 жыл бұрын
you can choose any element as the pivot, but the code in the partition function changes according to the pivot element
@marcusaureliusregulus2833
@marcusaureliusregulus2833 3 жыл бұрын
Because we don't know which is the median element. Median means the element which will be in the centre in a sorted array. But we don't know where it will be in an unsorted array. Thus we choose pivot point randomly( or first or last), point being we can't choose the median as pivot since we don't know where it is
@aishwarya1895
@aishwarya1895 3 жыл бұрын
Thnk u so much... Awesome explanation ✌
@Maheshwaripremierleague
@Maheshwaripremierleague Жыл бұрын
how swap function work, because we are not returning something how the changes which are made in swap function reflect to the main code?
@marathiplayer9974
@marathiplayer9974 4 жыл бұрын
Mam make vedio on python full cours for beginners plz
@paragmahale1437
@paragmahale1437 3 жыл бұрын
Maan! This was so better than what we were taught in college
@properfect5967
@properfect5967 3 жыл бұрын
Didi,why we can't use Selection sort,Bubble sort,Insertion sort. As,those take less coding, and less time in writing the code?
@adhavpranjal2142
@adhavpranjal2142 3 жыл бұрын
hey can u tell me why i am not getting any output noe error plz???soon
@properfect5967
@properfect5967 3 жыл бұрын
@@adhavpranjal2142either, there would be some error in written code,or in compiler May use c++ coding app(can also run offline ,without any add),as alternative for android.
@yashvats824
@yashvats824 2 жыл бұрын
As this algo is more efficient than sel , bubble ,ins as they take (n^2)time while this takes (nlogn)time
@partharanke5925
@partharanke5925 3 жыл бұрын
your voice is really sweet.
@anantsinghal3180
@anantsinghal3180 4 жыл бұрын
Please upload web development course.....🙏🏻🙏🏻🙏🏻bro which telegram channel please tell me.
@AyushSachan2211
@AyushSachan2211 4 жыл бұрын
I will come in 2021
@anantsinghal3180
@anantsinghal3180 4 жыл бұрын
@@AyushSachan2211 in jan ??? And are you the instrctor of course..
@harshulagarwal1755
@harshulagarwal1755 4 жыл бұрын
@@anantsinghal3180 sirf 2-3 days aur. Go and join Telegram where you will find details about everything.
@anantsinghal3180
@anantsinghal3180 4 жыл бұрын
@@harshulagarwal1755 bhai konsa telegram channel humse share kr do ....
@harshulagarwal1755
@harshulagarwal1755 4 жыл бұрын
@@anantsinghal3180 how to grab 1crore waali video dekho Aman dhattarwal bhaiya kee
@kashishmandlekar4746
@kashishmandlekar4746 3 жыл бұрын
Make video on randomised quick sort also Thanks
@rabatoaa857
@rabatoaa857 2 жыл бұрын
time complexity at 13:15
@utkarshsolanki224
@utkarshsolanki224 2 жыл бұрын
This same array is taken in coding ninja tutorials of competitive programming
@nikunjgarg3754
@nikunjgarg3754 3 жыл бұрын
Hey, please someone tell in which lecture bhaiya told about master theorem?
@PulkitMalhotra
@PulkitMalhotra 3 жыл бұрын
Master recursion
@nickfury4760
@nickfury4760 3 жыл бұрын
Time complexity would be n(n+1)/2 right not n squared for worst case
@artirani3806
@artirani3806 4 жыл бұрын
Bhaiya lecture 13 ke notes bhi daal do please🥺🙏 🙏. And shayad Rishabh bhaiya keh rahe the na ki ek telegram group h🤔🤔 uspe teachers bhi reply karte h, vo kaunsa h link de do na uska please.🥺
@arjunshivhare8998
@arjunshivhare8998 4 жыл бұрын
Bhaiya... web development series bnao plsss😍😍
@manishvlog240
@manishvlog240 Жыл бұрын
I like her voice 😊❤
@adityasarin39
@adityasarin39 3 жыл бұрын
Hey, can anyone guide as in which video do they explain recurrence relation ( Tree or master ) method ?
@rajatagrwl9328
@rajatagrwl9328 3 жыл бұрын
He didn't explain....
@palashagrawal2343
@palashagrawal2343 3 жыл бұрын
@@rajatagrwl9328 😂
@snehashishghosh7258
@snehashishghosh7258 3 жыл бұрын
Gate smasher
@search_ex_muslim_sahil_yt
@search_ex_muslim_sahil_yt 2 жыл бұрын
They didn't explain recurssion in depth . You have to learn something from other sources also.
@EverythingaboutTechPro
@EverythingaboutTechPro 3 жыл бұрын
Master theorem waali konsi video ? ?
@rishabhprasad8333
@rishabhprasad8333 3 жыл бұрын
Ab playlist me aa gayi hai wo video
@rishabhrawat1017
@rishabhrawat1017 3 жыл бұрын
correction : if(arr[j]
@stephenvs531
@stephenvs531 4 жыл бұрын
We haven't got notes of merge sort and quick sort . Please provide it soon. And thanks a lot for this course ❤️
@sit33darshanpagar16
@sit33darshanpagar16 3 жыл бұрын
Very good explanation
@jameswang3222
@jameswang3222 3 жыл бұрын
just a random question... Are you guys speaking hindi or English? I can't tell if you are speaking hindi with occasional English words or you're just speaking English with a very heavy accent
@aruneshprasad3064
@aruneshprasad3064 3 жыл бұрын
They use Hinglish
@revanthmahindra
@revanthmahindra 4 жыл бұрын
NOTES PLEASE
@kartikgoyal359
@kartikgoyal359 4 жыл бұрын
master theory kya hai??
@itsabdullahtech
@itsabdullahtech 2 жыл бұрын
Sorry but ap ki kuch smaj ni ai
@rajji7390
@rajji7390 3 жыл бұрын
Why we are using quick and merge sort We have already selection and bubble sort
@mohammadfaizanhashmi4213
@mohammadfaizanhashmi4213 3 жыл бұрын
we have insertion sort also but we use all method according to situation for more optimise code
@mishras5257
@mishras5257 4 жыл бұрын
Bhaiya aap btech biotech pai bhi ek video bna do jismai aap career opportunities, jobs, internship etc sab cover krna
@vaishnavideoskar5834
@vaishnavideoskar5834 4 жыл бұрын
R there any vids coming of html, web designing??? Plzz make tutorials on web designing 🙏
@RaNd0MiZeD
@RaNd0MiZeD 3 жыл бұрын
www.amazon.in/Object-Oriented-Programming-C-4e/dp/8131722821/ref=sr_1_2?dchild=1&keywords=robert+lafore&qid=1607740393&sr=8-2 Best OOPS book MRP 800 Sale Price: *** ( Limited Stocks) & if finished check on Flipkart also
@AnuragKumar-yj7ws
@AnuragKumar-yj7ws 3 жыл бұрын
madam 4:22 tak samajh aaya, uske baad kaise sort ho gaya pata nahi chala
@bhaskarmodi1867
@bhaskarmodi1867 Жыл бұрын
Can you upload python complete placement course
@adityamishra8296
@adityamishra8296 2 жыл бұрын
swap function is predefined ?? isn't it?
@abhimanyu6534
@abhimanyu6534 4 жыл бұрын
Plz explain example and code properly and relate them 🙏🙏🙏
@AmanKumarSinhaOfficial
@AmanKumarSinhaOfficial 3 жыл бұрын
Yess... Kuch samjh me nhi aaya.
@shriyamdwivedi1547
@shriyamdwivedi1547 4 жыл бұрын
Bhaiya pls start Java placement course animated
@Janaklodhi-nf7zi
@Janaklodhi-nf7zi 2 жыл бұрын
Great explanation ma'am 🙏
@sudipc9880
@sudipc9880 3 жыл бұрын
Good Explaination.
@PremKumar-th3fj
@PremKumar-th3fj 4 жыл бұрын
Bhaiya jee ke liye course kab aaega please tell Can't wait for it🔥😭
@RamanKumar-sp9bz
@RamanKumar-sp9bz Жыл бұрын
notes ka link work nahi kr raha
@mohakgidwani1505
@mohakgidwani1505 4 жыл бұрын
Notes ???
@ChandanJobanputra
@ChandanJobanputra 2 жыл бұрын
don't know why but my output is coming out to be very weird as it is returning elements that are not even in my array. Can someone help me with it as it was also the case in Merge Sort
@SakethKothapalli
@SakethKothapalli 2 жыл бұрын
Please teach in English so that people who don't know hindi can also listen🙏🙏🙏
@charityrymbai4159
@charityrymbai4159 Жыл бұрын
For the notes it's showing file does not exist Please look into it Sir/Ma'am
@kbhutani5967
@kbhutani5967 4 жыл бұрын
Can u pls explain the changes in stack memory in the questions done in the last lecture of recursion🙏🏻🙏🏻🙏🏻🙏🏻
@shivamnarula1601
@shivamnarula1601 4 жыл бұрын
Bhaiya please make aurdino tutorials
@mancunianswagger3668
@mancunianswagger3668 3 жыл бұрын
Bhai kitte ads aate hain har 2 min pe ek ad Utube premium lene pe majboor ho rha hu mai ab
@janvimyadventures1310
@janvimyadventures1310 3 жыл бұрын
It is giving wrong output n is also not defined I am getting output as 14523
@nit_gaal
@nit_gaal 2 жыл бұрын
Yes me to
@nitishsingh3470
@nitishsingh3470 4 жыл бұрын
Very nice explanation 👍
@NikhilSharma7803
@NikhilSharma7803 4 жыл бұрын
The best
@prabhjotkaur7780
@prabhjotkaur7780 2 жыл бұрын
Plz share notes of this video . Plz
@sahilgupta7170
@sahilgupta7170 3 жыл бұрын
/master theorem konsi video me tha ?
@vaibhavwani2094
@vaibhavwani2094 3 жыл бұрын
less than Expected bhaiya...
@AmanKumarSinhaOfficial
@AmanKumarSinhaOfficial 3 жыл бұрын
Yes
@abhishekchaudhary3879
@abhishekchaudhary3879 2 жыл бұрын
notes are unavailable plz check it
@achabacha3809
@achabacha3809 3 жыл бұрын
Quick_short function my error btataa h (pi-1) kye pss😓😓😓😓😓
@mridul549
@mridul549 2 жыл бұрын
the code is the exact copy from gfg, what's the point of watching this video then?
@sabihatahsinsoha112
@sabihatahsinsoha112 Жыл бұрын
Could you please update the drive link? The link is not accessible.
@Sourav-o7z
@Sourav-o7z 6 ай бұрын
Karo
@toontelugu4564
@toontelugu4564 2 жыл бұрын
Thank you
@bat_man1138
@bat_man1138 3 жыл бұрын
Her voice is miraculous
@rahulranjan4618
@rahulranjan4618 3 жыл бұрын
Very good video
@aswinbarath
@aswinbarath 4 жыл бұрын
🔥🔥🔥Verithanam🔥🔥🔥
@vathsan3906
@vathsan3906 4 жыл бұрын
எந்த ஊரு நண்பா
@aswinbarath
@aswinbarath 3 жыл бұрын
@@vathsan3906 Naan Ooty nanba Neenga endha ooru
@deveshb793
@deveshb793 3 жыл бұрын
master theorem kab sikhaya?
@akvedichealth
@akvedichealth 4 жыл бұрын
Bhai do do channel h apna college ke naam se kaun sa shi h
@sharmisthasinhakashyap4949
@sharmisthasinhakashyap4949 3 жыл бұрын
Where Is The Notes Of This Lecture?
@hustlewithVaibhav
@hustlewithVaibhav 3 жыл бұрын
Amazing bhaiya
@Agam_091
@Agam_091 4 жыл бұрын
Keep it up...u guys are great
@Neoshiva
@Neoshiva 2 жыл бұрын
Why this code showing segmentation fault in vs code.......please HELP!!!!!
@desiidea6577
@desiidea6577 4 жыл бұрын
Arey bhaiya class 12 ka lecture tu dal do
@khantanveer7066
@khantanveer7066 3 жыл бұрын
Why you took i=L-1; Then swapped i+1; Why not take only i; 🙂🙂
@tarangpatil6952
@tarangpatil6952 3 жыл бұрын
there is a for loop of int j, in which the i++ needs to be before the swap(i,j). But if you take i = L, then you will skip the first element in the for loop. Thats why
@khantanveer7066
@khantanveer7066 3 жыл бұрын
@@tarangpatil6952 bro we u write i++ after swap then it solved
@ManishRaj-zm5gs
@ManishRaj-zm5gs 2 жыл бұрын
this code will fail if there are duplicate elements in the array
@tusharchopra7825
@tusharchopra7825 2 жыл бұрын
Notes does not exist
@abhimanyu6534
@abhimanyu6534 4 жыл бұрын
Bilkul smzhana nhi arha 😭😭
@AmanKumarSinhaOfficial
@AmanKumarSinhaOfficial 3 жыл бұрын
Sahi baat hai..
Vectors and Pair | C++ Course - 19
15:30
Apna College
Рет қаралды 302 М.
Merge Sort | Code and Explanation | C++ Course - 19.1
17:10
Apna College
Рет қаралды 484 М.
PRANK😂 rate Mark’s kick 1-10 🤕
00:14
Diana Belitskay
Рет қаралды 11 МЛН
Haunted House 😰😨 LeoNata family #shorts
00:37
LeoNata Family
Рет қаралды 13 МЛН
ТЮРЕМЩИК В БОКСЕ! #shorts
00:58
HARD_MMA
Рет қаралды 2,2 МЛН
Lecture36: Quick Sort using Recursion | Day-6 | 10 Day Recursion Challenge
37:55
Learn Quick Sort in 13 minutes ⚡
13:49
Bro Code
Рет қаралды 382 М.
Best Books for Learning Data Structures and Algorithms
14:01
Engineering with Utsav
Рет қаралды 373 М.
2nd year student cracks Paypal | Off-Campus selection | + PPI
31:29
Apna College
Рет қаралды 198 М.
7.6 Quick Sort in Data Structure | Sorting Algorithm | DSA Full Course
24:43
Jenny's Lectures CS IT
Рет қаралды 2,7 МЛН
QuickSort Algorithm in Hindi (With Code in C)
52:29
CodeWithHarry
Рет қаралды 391 М.
Quick Sort Algorithm
3:27
CuriousWalk
Рет қаралды 265 М.
Quick Sort For Beginners | Strivers A2Z DSA Course
35:17
take U forward
Рет қаралды 447 М.
2.8.1  QuickSort Algorithm
13:43
Abdul Bari
Рет қаралды 3,3 МЛН
PRANK😂 rate Mark’s kick 1-10 🤕
00:14
Diana Belitskay
Рет қаралды 11 МЛН