selection sort -- in every round the smallest value takes their correct place. bubble sort - in every round the largest value takes their correct place.
@nagasaipurvaz42512 жыл бұрын
we can also write selection sort for maximum value the main difference is that bubble sort compares between adjecent elements
@AnkitKumar-ud4vt2 жыл бұрын
@@nagasaipurvaz4251 correct devil bless you
@sonugupta1472 жыл бұрын
@@AnkitKumar-ud4vt devil😂😂
@V418H4V Жыл бұрын
@@nagasaipurvaz4251 then it will be sorted in descending order, similarly in bubble sort if we swap when arr[i] < arr[i+1] then it will be descending too...
@niccolopaganini17829 ай бұрын
@@AnkitKumar-ud4vt *God. Devil's blessings are worthless
@asmitsrivas3 жыл бұрын
Lecture 17 - Present 21:18 || 30:30 void bubbleSort(vector& arr, int n) { for(int i = 0; i
@pradnyashilgaikwad11582 жыл бұрын
Thanku so much
@rameshmalhotra95252 жыл бұрын
kzbin.info/www/bejne/jpPEcmRjd65gsNk
@divewithadarsh9142 жыл бұрын
bhaiya after watching too many dsa related videos on KZbin I finally came across this dsa series and I started watching your videos I must say that it's a lifesaver, bhaiya you are just nailing it like you explain so well you give us a fodu vibe when i watch your video it's like I am just going and going it's endless ocean from where i don't wanna get out i never had thought you'll end up making dsa just a game. your teaching style is way better than most of the 20 or 30 years experienced. Bhaiya just keep it up i wish, at the end of the this dsa journey we all who followed seriously will be able to crack our dream companies. Thankyou bhaiya.....just keep it up
@arinbagul4552 Жыл бұрын
Bubble sort is a stable and in-place sorting algorithm. Great Lecture, Thank You🙇♂
@CODEWK73 жыл бұрын
Soo I'm telling you guyss this is the bestest series of dsa I have ever seen ....after struggling from 1.5 years I lastly found my point thankyou so much bhaiyaa for this amazing series 💜will continue this till the end... All the best bhaiya👍✨
@AMBUJ62 жыл бұрын
Hey, can you tell me about your whole experience of this series
@amankumarkushwaha432 Жыл бұрын
@@AMBUJ6 Purple heart
@yashshah8440 Жыл бұрын
have you completed the series?
@31sagarkotwal32 Жыл бұрын
Good better best
@shubhaggarwal2841 Жыл бұрын
@@31sagarkotwal32 lol
@rishabhvishwakarma5745 Жыл бұрын
bhaiya abb dry run krte acche se bann raha hai aur pattern wale concept ke wajha se thoda easy sa lagta hai ye krna thankyou bhaiya😄😄
@hermionegranger64932 жыл бұрын
Bestest video on bubble sort,I have came across. Blessed to have this series!!☺
@shivamgupta89172 жыл бұрын
lets rename the topic " Babbar sort "
@BulletRrajaji Жыл бұрын
krli bakchodi 😅,ho gyi placement 😂
@anuragkumar46247 ай бұрын
bro, can u share abt ur placement update
@videoshukum188818 күн бұрын
Hua kya kisi ka bhai log@@anuragkumar4624
@anshulsharma31373 жыл бұрын
Bhaiya thank you so much for this course. I have 2 suggestions/feedback:- 1. Before jumping to the optimal solution please do tell us the naive way to solve it. 2. After covering all the topics related to particular sections(eg Sorting, recursion, etc), do conduct one coding test, so we will be able to test our knowledge and revise the already taught topics. Thanks again ✌
@apurvaparanjape89403 жыл бұрын
thank you sir for this amazing course. 1. bubble sort is a stable algorithm 2. yes bubble sort is in place sort because it does not use additional space
@deeppatel05862 жыл бұрын
how stable?
@komald21942 жыл бұрын
Awesome way of explaining complex concepts. By far the bestest DSA course on youtube. Trust me, when I say this. I live in the UK but nobody over here can explain stuff with the simplicity that you do. Kudos to you and such selfless way of gifting knowledge to millions. I am learning Java but I can better understand concepts from you than the paid course I have taken here in the UK. Please please please do something for students who want JAVA concepts too. I know C++ & Java both are Object oriented but there are no pointers in Java.
@souravdubey45783 жыл бұрын
I have a subscription of a paid course (bhayiya k sponsers😁 ) but literally babbar bhayiya's this dsa series is far better and much detailed than that . Bhayiya is keeping his words -QUALITY TOP NOCH HOGI Thanks alot bhayiya and keep doing this great work
@sarcasticworld98833 жыл бұрын
bhaiyaa.. video roj continue rkho... skip mt kro... aur content 1hr + hoga bhi to koi dikkat ni
@amolnaikwade90043 жыл бұрын
Bhai video cover-up Karne ke liye ekdin Diya tha sabko
@sumitraj68783 жыл бұрын
@@amolnaikwade9004 aree usko choro na. Agar sachmei follow kr rha hota na... toh ye sb bakwaas nai krta..... spammer hai wo
@amolnaikwade90043 жыл бұрын
@@sumitraj6878 👍
@sarcasticworld98833 жыл бұрын
@@sumitraj6878 bhai spammer ni hu... continue follow kr rha. bs mai ye kh rha tha ki.. roj video aati rhe.. continously without break
@sarcasticworld98833 жыл бұрын
@@amolnaikwade9004 yep i know.
@anushkayachit3 жыл бұрын
Present sir!!!!! Course going smoothly... Thanks a million ❤️❤️
@ankitrautela74723 жыл бұрын
kzbin.info/www/bejne/iaurd4ponpl9erc
@vivekjyani3 жыл бұрын
When you say "Hello ji kese ho saare 😎😎😎😎" ❤️❤️❤️❤️ Attandance marked bhaiya ❤️
@ankitrautela74723 жыл бұрын
kzbin.info/www/bejne/iaurd4ponpl9erc
@Kuchachememes2 жыл бұрын
19:38 pr pattern wala point dekh kr mza aa gya bhiya ji 🤩
@saurabh32442 жыл бұрын
When you optimised the code it was a very exciting moment
@Geetanjalichawla2 жыл бұрын
I was very confused in sorting i am watching this video for 3rd time but i can proudly say i will never forget bubble sort thanks Mr babbar 😇
@abhishekgond73003 жыл бұрын
Present sir!!!!......Thank you bhaiya for this course🙏🙏😍😍
@akshitsangwan_3 жыл бұрын
Well Explained Bhaiya hamesha ki tarah saare doubts khalaas:) Attendance marked!
@saketsrivastava14243 жыл бұрын
Thank you for the course Bhaiya It's helping us a lot
@ankitrautela74723 жыл бұрын
kzbin.info/www/bejne/iaurd4ponpl9erc
@rameshmalhotra95252 жыл бұрын
kzbin.info/www/bejne/jpPEcmRjd65gsNk
@srajittanwar6363 жыл бұрын
i usually dont comment on videos but the efforts of bhaiya made me comment. this is really an amazing course. thank you so much. and bhaiya please dont stop this course in between like other youtubers. THANK YOU SO MUCH FOR YOUR EFFORTS;
@subhasishasahoo.1053 жыл бұрын
Bro ... Your DSA course is supp.. And amazing .... We are enjoying and learning this course ... Please upload 1hr. Content .No problem for 1hr...
@ankitrautela74723 жыл бұрын
kzbin.info/www/bejne/iaurd4ponpl9erc
@rameshmalhotra95252 жыл бұрын
kzbin.info/www/bejne/jpPEcmRjd65gsNk
@pranjalsaheb92682 жыл бұрын
Just watched the video. Lagta h ab life m kabhi bubble sort ki video ni dekhani pdegi. Content is 🔥🔥🔥🔥
@poojayadav6953 жыл бұрын
Bhaiya roz videos upload kar diya karo taki continuity bani rahe Following every video from start ❤️❤️❤️❤️❤️❤️
You have completed 3/3 questions. Your accuracy is 100%. gfg quiz
@samkitshah552 жыл бұрын
Sir, ye video me hamesha yad rakhunga sir mai🔥 ye mera phela code tha kisi platform pr khud se kiya hua... Apne jo last me jo approach boli (i=0 and j=i+1) video k first 8 min he code likh kr sare test cases pass kr diye the❤️❤️❤️ Thank you Bhaiya🔥🔥
@mdwaqar7401 Жыл бұрын
Lecture 17 Complete as well! Thanks Bhaiyya Onto the Next Video😃😇
@codecpp59512 жыл бұрын
it is stable algorithm , as we are not using
@suranjandhara75352 жыл бұрын
Bhaiya Maine bahut teji se video dekhke homework complete karke ja raha hu ta ki apka agla video aane ke pehele Maine 46 th video Tak pahach jau.... 😐😐😐😐 Channel PE Anne me der ho gya.... 🙏🙏🙏🙏 Amazing 😍😍😍😍 teaching..... amazing 🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩.......
@sougatasingha95872 жыл бұрын
I know bubble sort but I am still watching this video because i love your way of explanation thank you so much for a precious DSA course like this .
@billionairesayss3 жыл бұрын
best course on the internet change my mind thanks for the amazing lectures
@ved_prakash26452 жыл бұрын
Lovely bhaiya... Thanku sooooo much itne sare examples batate ho doubt ka d b ni rhta...thankuuuuuuu
@manishrawat37913 жыл бұрын
Bhaiya late hu but Present bhaiya !!!! Daily 6 hr de rha hu umeed yhi hai ye mehnat baad m thoda sa rang dikhaye bakki clg bh hai sleep k sath thoda compro krna pdh rha hai bss mehnaat krta jata hu fruit of labour k bbare m baad m sochengey
@vijayvk4905 ай бұрын
Ky raha bhai result?
@mohammadvaluda69722 жыл бұрын
bahut badiya pada rahe ho . thank you so much.
@shubhanshunigam1483 жыл бұрын
Love Babbar bhaiya aapke course me alag hi vibe hoti hai . Baki sabka course ek taraf aapka sabse accha vibe wala bass mai yehi kahunga ki aap iss course ko band mt kariyega jbtk khatam nahi hojata . because there are lakhs of hopes behind you !!! YOU ARE DOING GREAT WORK BHAIYA !! KEEP IT UP !!
@ankitrautela74723 жыл бұрын
kzbin.info/www/bejne/iaurd4ponpl9erc
@rameshmalhotra95252 жыл бұрын
kzbin.info/www/bejne/jpPEcmRjd65gsNk🙏🏻
@MvpMoon-e1v Жыл бұрын
he is all in one legend and epalians better than any professor or uni teacher
@ShashiBhushanKumar-me9uu2 жыл бұрын
simply best series on dsa on youtube.
@vipulkumar90652 жыл бұрын
💫💣 aag series bana diye ho bhaiya
@hyderali15203 жыл бұрын
present bhaiya ,ek dam jhakas wala course hai
@iam_yash12 жыл бұрын
bhaiya dekh li hai ye wali aaj, abhi homework krne ke baad insertion sort pe badd jaunga, thankyou sir🙏🏻
@kaminikumari76052 жыл бұрын
Thanku so much sir for this mind blowing series😊😊
@m7s2933 жыл бұрын
💝💝💝💝💝💝💝 Best DSA series on KZbin 💝💝💝💝💝💝💝
@dipanshu_01993 жыл бұрын
Better than any other DSA course !! DSA sheet ka wait h bhaiya 🙃🙃
@ankitrautela74723 жыл бұрын
kzbin.info/www/bejne/iaurd4ponpl9erc
@rameshmalhotra95252 жыл бұрын
kzbin.info/www/bejne/jpPEcmRjd65gsNk🙏🏻
@rasid_khan3 жыл бұрын
Thank you so much bhaiya ❤😍 Let's start bubble sort😋😋😋
@nikhilbhojak46312 жыл бұрын
bahut badhiya chalra ha apki kripa se bhaiya🔥😊❤
@MuhammadBilal-b2w6o Жыл бұрын
bhia bohat zabardst playlist hai 1 dam mast or kamaal ke ahi
@RohitRana-tz2lr2 жыл бұрын
Thank you so much bhaiya for this great dsa course.. loves the way you teach
@rishabhtyagi73692 жыл бұрын
Another method: (quite similar to the selection sort one ) ; #include using namespace std; void sort_arr(int arr[], int size){ int e = size-1; for(int k = 0; k
@virajdeshpande98212 жыл бұрын
NICE
@rameshmalhotra95252 жыл бұрын
kzbin.info/www/bejne/jpPEcmRjd65gsNk
@sojwalgosavi44062 жыл бұрын
The swapped(boolean ) part was new for me , learned something new...
@aditidarekar4155 Жыл бұрын
The way you explain every concepts is far better than my university teacher's.
@jaivishwakarma3042 жыл бұрын
bhaiya confidence to aara h 🔥🔥
@Dharmikmonk3 жыл бұрын
If yeh course successfully complete hua na time pe toh this will be the best best best course ever
@vineetkrpandey764111 ай бұрын
bubble sort is an in place sorting algorithm as it does not uses the extra space for its manipulation , while it may use some spaces for their operations.
@code-heads Жыл бұрын
This is literally one of the best explaination of Bubble Sort. Thank you so much!
@sjcreations24903 жыл бұрын
Thank you bhaiya. Understood bubble sort completely. 👍👍
@vitaminprotein22173 жыл бұрын
firstly implement it in vs code,for basic understanding ,then simply switch to any of the cp platform
@prasadprashantb.40012 жыл бұрын
Whaaa bhiyaa maza arela hai🙌🙌👍❤
@vikramdhoke68093 жыл бұрын
Hands on chal rahe hai bhaiya but dekhunga jaroor ye video
@DominiK037 Жыл бұрын
Bubble sort is stable algorithm because we are swapping adjacent elements unlike Selection sort where we swapped by comparing i'th element with rest of the elements
@speeeeeedw8272 Жыл бұрын
I implemented the code before you shared the code. This is my code which got runtime of 28 ms and performed better than 97.7%. it used while loop. while(length!=0){ int i=0; while(i
you are rockstar bhaiya etnaa easy way mai batna koi aap sai shike
@priyasharma35493 жыл бұрын
thank you bhaiyaa ❤✌ done with homework..
@bismahayat37399 ай бұрын
This guy is amazing Really thanks
@techprogrammer41583 жыл бұрын
Babbar bhaiyya present. Class attend karna late aur jaldhi hoga. But class attend karna jarur he🔥
@MohanSingh-rj3td2 жыл бұрын
these are bit of easy topic compared to binary search problem, so need less time in closing this video. all and all this is very good video over this topic. thanks bro
@piyushbhatnagar27143 жыл бұрын
best course on youtube
@bhanudaibhandari77303 жыл бұрын
Ek dil mil jata toh baat ban jaati
@aayushkhurana78103 жыл бұрын
Present bhaiya loving the quality of this course. Can you please add topics like matrix, deque , segment tree, disjoint set
@ankushladani4963 жыл бұрын
Maja aaya bhaiya.... bahut bahut thank you..😎😎
@_SahilShah3 жыл бұрын
Today's Attendance Marked!💯😊
@lalitbisht8381 Жыл бұрын
The whole game was of i=1 and j
@TECHNICALMANedit3 жыл бұрын
Full code for java Bubble Short:- package Algorithms; import java.util.*; class bubbleSort{ public int[] my_logic_bubbleSort(int[] a, int n){ for(int i=1; i
@sandipdegloore34943 жыл бұрын
thank you bhaiya , done with BUBBLE SORT 🙏🙏
@vishichaurasiya44272 жыл бұрын
Bubble sort is stable and in-place sort 🔥 🔥🔥💯
@nothing351.- Жыл бұрын
for the first time in life, I understood bubble sort and selection sort that I couldn't understand for the last 1.5 year.
@mannmerwana476 Жыл бұрын
Also,in which language are you implementing it?
@arunyagoojar18892 жыл бұрын
omg the optimised code was amazing .
@vigneshv76323 жыл бұрын
I sticked untill last minute. I am liking it.
@arpitrajput64243 жыл бұрын
Bhaiya continue video plz waiting lambi ho jati h 😁
@devanshaggarwal26273 жыл бұрын
Bubble sort is in-place algorithm. Basically it means that no extra space is required by this algorithm.
@manavrollno.23143 жыл бұрын
I love you mere bhaiya ❤️❤️❤️ You are the best teacher
@dEviL_bIsWaJiT2 жыл бұрын
Mark the attendance bhaiya😊🔥❤️ *#DSAbusted* *#believeinlovebabbarbhaiya*
@ritiksahu18442 жыл бұрын
At 29:46 the flag swapped has to declared inside outer loop of i, to reset the value of swapped, otherwise it will once gets true will never become false in each round and will be useless .
@siddharthsingh9132 жыл бұрын
sahi toh kiya hai. He has declared it inside the outer loop and before the second loop;
@rameshmalhotra95252 жыл бұрын
kzbin.info/www/bejne/jpPEcmRjd65gsNk🙏🏻
@swapnilsoni73512 жыл бұрын
True, that will make the code more optimised. Making it exit the execution even if sorting is achieved at any traversing index, not just start and end.
@harshwardhan50153 жыл бұрын
present bhaiya! thank you❣
@meghamathuria4613 жыл бұрын
You are the best bhaiya thank you so much for helping us🤩🙏
@ankitrautela74723 жыл бұрын
kzbin.info/www/bejne/iaurd4ponpl9erc
@rameshmalhotra95252 жыл бұрын
kzbin.info/www/bejne/jpPEcmRjd65gsNk🙏🏻🙏🏻
@anshuanand5983 жыл бұрын
Nice video mjaa aa gyaa dekhh k 😃🙏🙏🙏
@smit_XD Жыл бұрын
best explanation i have ever seen
@fnGamingz2 жыл бұрын
Bro speechless Thanks a lot, one day will be in Google and will doing podcast with you. And will tell to your viewer that, from this platform only I was suppose to crack Google. Google Soon.. Google Soon.. Google Soon.. Google Soon.. Google Soon.. Google Soon..Inshallah.
@ARSIL_AFRIDI2 жыл бұрын
*Inshallah*
@divyeshmavadiya63103 жыл бұрын
Maja aa gaya bhaiya 🥰🥰🥰
@livelyhood20036 ай бұрын
bhaiya, chahe swap kare ya na kare, compare to ho hi raha hai already sorted ke case me, to best case ki bhi to O(n^2) honi chahiye n. jaise selection sort me aapne bola best case me compare ho raha hai to best bhi O(n^2) hi hoga. please reply
@shobitgoyal93533 жыл бұрын
Watched, done 🤟, roz video prr 40-45min ki hi bss
@siriam21373 жыл бұрын
Amazing video.. very informative
@anishsingh47502 жыл бұрын
Bhaiya video done, moving on to next lecture.
@syedshabbarraza6384 Жыл бұрын
Thanks a lot this is easiest way of code bubble sorting