Lecture 17: BUBBLE SORT in 1 Video [Theory + Optimised Code] || Best/Worst Case Complexity

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ย. 2024

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

  • @Ak-in5cu
    @Ak-in5cu 2 ปีที่แล้ว +357

    selection sort -- in every round the smallest value takes their correct place.
    bubble sort - in every round the largest value takes their correct place.

    • @nagasaipurvaz4251
      @nagasaipurvaz4251 2 ปีที่แล้ว +41

      we can also write selection sort for maximum value
      the main difference is that bubble sort compares between adjecent elements

    • @AnkitKumar-ud4vt
      @AnkitKumar-ud4vt 2 ปีที่แล้ว +13

      @@nagasaipurvaz4251 correct
      devil bless you

    • @sonugupta147
      @sonugupta147 2 ปีที่แล้ว +10

      @@AnkitKumar-ud4vt devil😂😂

    • @V418H4V
      @V418H4V ปีที่แล้ว +4

      @@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...

    • @niccolopaganini1782
      @niccolopaganini1782 8 หลายเดือนก่อน

      ​@@AnkitKumar-ud4vt *God. Devil's blessings are worthless

  • @divewithadarsh914
    @divewithadarsh914 2 ปีที่แล้ว +26

    bhaiya after watching too many dsa related videos on TH-cam 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
    @arinbagul4552 ปีที่แล้ว +15

    Bubble sort is a stable and in-place sorting algorithm. Great Lecture, Thank You🙇‍♂

  • @hermionegranger6493
    @hermionegranger6493 2 ปีที่แล้ว +14

    Bestest video on bubble sort,I have came across.
    Blessed to have this series!!☺

  • @CODEWK7
    @CODEWK7 2 ปีที่แล้ว +120

    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👍✨

    • @AMBUJ6
      @AMBUJ6 2 ปีที่แล้ว +4

      Hey, can you tell me about your whole experience of this series

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

      @@AMBUJ6 Purple heart

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

      have you completed the series?

    • @31sagarkotwal32
      @31sagarkotwal32 ปีที่แล้ว +2

      Good better best

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

      @@31sagarkotwal32 lol

  • @anshulsharma3137
    @anshulsharma3137 2 ปีที่แล้ว +68

    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 ✌

  • @asmitsrivas
    @asmitsrivas 2 ปีที่แล้ว +5

    Lecture 17 - Present
    21:18 || 30:30
    void bubbleSort(vector& arr, int n)
    {
    for(int i = 0; i

  • @rishabhvishwakarma5745
    @rishabhvishwakarma5745 ปีที่แล้ว +6

    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😄😄

  • @komald2194
    @komald2194 ปีที่แล้ว +5

    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.

  • @shivamgupta8917
    @shivamgupta8917 ปีที่แล้ว +105

    lets rename the topic " Babbar sort "

    • @BulletRrajaji
      @BulletRrajaji 10 หลายเดือนก่อน +27

      krli bakchodi 😅,ho gyi placement 😂

    • @anuragkumar4624
      @anuragkumar4624 6 หลายเดือนก่อน +3

      bro, can u share abt ur placement update

  • @apurvaparanjape8940
    @apurvaparanjape8940 2 ปีที่แล้ว +16

    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

  • @souravdubey4578
    @souravdubey4578 2 ปีที่แล้ว +39

    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

  • @Kuchachememes
    @Kuchachememes 2 ปีที่แล้ว +3

    19:38 pr pattern wala point dekh kr mza aa gya bhiya ji 🤩

  • @saketsrivastava1424
    @saketsrivastava1424 2 ปีที่แล้ว +19

    Thank you for the course Bhaiya
    It's helping us a lot

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

      th-cam.com/video/SzHFW2i4JDU/w-d-xo.html

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

      th-cam.com/video/XbaA1-BI-zw/w-d-xo.html

  • @srajittanwar636
    @srajittanwar636 2 ปีที่แล้ว +3

    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;

  • @akshitsangwan_
    @akshitsangwan_ 2 ปีที่แล้ว +3

    Well Explained Bhaiya hamesha ki tarah saare doubts khalaas:)
    Attendance marked!

  • @Geetanjalichawla
    @Geetanjalichawla 2 ปีที่แล้ว +3

    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 😇

  • @mohammadvaluda6972
    @mohammadvaluda6972 2 ปีที่แล้ว +2

    bahut badiya pada rahe ho . thank you so much.

  • @saurabh3244
    @saurabh3244 2 ปีที่แล้ว +3

    When you optimised the code it was a very exciting moment

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

    Just watched the video. Lagta h ab life m kabhi bubble sort ki video ni dekhani pdegi. Content is 🔥🔥🔥🔥

  • @subhasishasahoo.105
    @subhasishasahoo.105 2 ปีที่แล้ว +6

    Bro ... Your DSA course is supp.. And amazing .... We are enjoying and learning this course ...
    Please upload 1hr. Content .No problem for 1hr...

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

      th-cam.com/video/SzHFW2i4JDU/w-d-xo.html

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

      th-cam.com/video/XbaA1-BI-zw/w-d-xo.html

  • @poojayadav695
    @poojayadav695 2 ปีที่แล้ว +1

    Bhaiya roz videos upload kar diya karo taki continuity bani rahe
    Following every video from start
    ❤️❤️❤️❤️❤️❤️

  • @shubham7668
    @shubham7668 2 ปีที่แล้ว +9

    You have completed 3/3 questions.
    Your accuracy is 100%.
    gfg quiz

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

    Lovely bhaiya... Thanku sooooo much itne sare examples batate ho doubt ka d b ni rhta...thankuuuuuuu

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

    Lecture 17 Complete as well! Thanks Bhaiyya
    Onto the Next Video😃😇

  • @vivekjyani
    @vivekjyani 2 ปีที่แล้ว +5

    When you say "Hello ji kese ho saare 😎😎😎😎" ❤️❤️❤️❤️
    Attandance marked bhaiya ❤️

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

      th-cam.com/video/SzHFW2i4JDU/w-d-xo.html

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

    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🔥🔥

  • @abhishekgond7300
    @abhishekgond7300 2 ปีที่แล้ว +5

    Present sir!!!!......Thank you bhaiya for this course🙏🙏😍😍

  • @codecpp5951
    @codecpp5951 2 ปีที่แล้ว +4

    it is stable algorithm , as we are not using

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

    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 🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩.......

  • @anushkayachit
    @anushkayachit 2 ปีที่แล้ว +16

    Present sir!!!!! Course going smoothly... Thanks a million ❤️❤️

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

      th-cam.com/video/SzHFW2i4JDU/w-d-xo.html

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

    bhaiya dekh li hai ye wali aaj, abhi homework krne ke baad insertion sort pe badd jaunga, thankyou sir🙏🏻

  • @manishrawat3791
    @manishrawat3791 2 ปีที่แล้ว +2

    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

    • @vijayvk490
      @vijayvk490 4 หลายเดือนก่อน

      Ky raha bhai result?

  • @MvpMoon-e1v
    @MvpMoon-e1v 11 หลายเดือนก่อน

    he is all in one legend and epalians better than any professor or uni teacher

  • @sougatasingha9587
    @sougatasingha9587 2 ปีที่แล้ว +2

    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 .

  • @sarcasticworld9883
    @sarcasticworld9883 2 ปีที่แล้ว +56

    bhaiyaa.. video roj continue rkho... skip mt kro... aur content 1hr + hoga bhi to koi dikkat ni

    • @amolnaikwade9004
      @amolnaikwade9004 2 ปีที่แล้ว +2

      Bhai video cover-up Karne ke liye ekdin Diya tha sabko

    • @sumitraj6878
      @sumitraj6878 2 ปีที่แล้ว +4

      @@amolnaikwade9004 aree usko choro na. Agar sachmei follow kr rha hota na... toh ye sb bakwaas nai krta..... spammer hai wo

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

      @@sumitraj6878 👍

    • @sarcasticworld9883
      @sarcasticworld9883 2 ปีที่แล้ว +2

      @@sumitraj6878 bhai spammer ni hu... continue follow kr rha.
      bs mai ye kh rha tha ki.. roj video aati rhe.. continously without break

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

      @@amolnaikwade9004 yep i know.

  • @Ayush_.
    @Ayush_. 2 ปีที่แล้ว +4

    Bubble sort done !!
    course ekdam makkhan jesaa rha he 😂 #Namaste_Duniya #AlwaysLoveBabbar

  • @MuhammadBilal-b2w6o
    @MuhammadBilal-b2w6o ปีที่แล้ว

    bhia bohat zabardst playlist hai 1 dam mast or kamaal ke ahi

  • @RohitRana-tz2lr
    @RohitRana-tz2lr 2 ปีที่แล้ว +3

    Thank you so much bhaiya for this great dsa course.. loves the way you teach

  • @vitaminprotein2217
    @vitaminprotein2217 2 ปีที่แล้ว +2

    firstly implement it in vs code,for basic understanding ,then simply switch to any of the cp platform

  • @PanditNaveenbhardwaj
    @PanditNaveenbhardwaj 2 ปีที่แล้ว +6

    The series beyond the paid course ❤️❤️

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

      th-cam.com/video/SzHFW2i4JDU/w-d-xo.html

  • @billionairesayss
    @billionairesayss 2 ปีที่แล้ว +2

    best course on the internet change my mind thanks for the amazing lectures

  • @dipanshu_0199
    @dipanshu_0199 2 ปีที่แล้ว +3

    Better than any other DSA course !!
    DSA sheet ka wait h bhaiya 🙃🙃

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

      th-cam.com/video/SzHFW2i4JDU/w-d-xo.html

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

      th-cam.com/video/XbaA1-BI-zw/w-d-xo.html🙏🏻

  • @rishabhtyagi7369
    @rishabhtyagi7369 2 ปีที่แล้ว +8

    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

  • @vineetkrpandey7641
    @vineetkrpandey7641 10 หลายเดือนก่อน +1

    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.

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

    present bhaiya ,ek dam jhakas wala course hai

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

    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

  • @sojwalgosavi4406
    @sojwalgosavi4406 2 ปีที่แล้ว +1

    The swapped(boolean ) part was new for me , learned something new...

  • @aditidarekar4155
    @aditidarekar4155 11 หลายเดือนก่อน

    The way you explain every concepts is far better than my university teacher's.

  • @aayushkhurana7810
    @aayushkhurana7810 2 ปีที่แล้ว +3

    Present bhaiya loving the quality of this course. Can you please add topics like matrix, deque , segment tree, disjoint set

  • @kaminikumari7605
    @kaminikumari7605 2 ปีที่แล้ว +2

    Thanku so much sir for this mind blowing series😊😊

  • @billionairesayss
    @billionairesayss 2 ปีที่แล้ว +1

    h.w.1---Explanation: 1 : 8, 7, 9, 22, 5, 13, 31 = 4 swaps
    2 : 7, 8, 9, 5, 13, 22, 31 = 3 swaps
    3 : 7, 8, 5, 9, 13, 22, 31 = 1 swap
    4 : 7, 5, 8, 9, 13, 22, 31 = 1 swap
    5 : 5, 7, 8, 9, 13, 22, 31 = 1 swap
    Total 10 swaps are required to sort the array.

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

    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

  • @AmanSingh-oc5tu
    @AmanSingh-oc5tu 2 ปีที่แล้ว

    you are rockstar bhaiya etnaa easy way mai batna koi aap sai shike

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

    Hands on chal rahe hai bhaiya but dekhunga jaroor ye video

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

    💫💣 aag series bana diye ho bhaiya

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

    If yeh course successfully complete hua na time pe toh this will be the best best best course ever

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

    bahut badhiya chalra ha apki kripa se bhaiya🔥😊❤

  • @ShashiBhushanKumar-me9uu
    @ShashiBhushanKumar-me9uu 2 ปีที่แล้ว

    simply best series on dsa on youtube.

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

    Bhaiya hum selection sort ko eek aur techniques se krr sakte hai
    Aur uski time complexity bhi isse kam hogi
    Hum kya karenege eek loop chala denge poore array me aur uske baad hum minimum value store kara lenge
    Aur phir usko swap krr denge pahle wale ke saath

  • @code-heads
    @code-heads ปีที่แล้ว +2

    This is literally one of the best explaination of Bubble Sort.
    Thank you so much!

  • @rasid_khan
    @rasid_khan 2 ปีที่แล้ว +1

    Thank you so much bhaiya ❤😍
    Let's start bubble sort😋😋😋

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

    bhaiya confidence to aara h 🔥🔥

  • @piyushbhatnagar2714
    @piyushbhatnagar2714 2 ปีที่แล้ว +1

    best course on youtube

  • @MohanSingh-rj3td
    @MohanSingh-rj3td 2 ปีที่แล้ว

    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

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

    The whole game was of i=1 and j

  • @sherebanoburhani8939
    @sherebanoburhani8939 2 ปีที่แล้ว +1

    Bhaiya plz make a solution and approach video after today's contest. It will be really helpfulll.
    Course is great.
    I am sem1 student.

  • @bismahayat3739
    @bismahayat3739 8 หลายเดือนก่อน

    This guy is amazing
    Really thanks

  • @devanshaggarwal2627
    @devanshaggarwal2627 2 ปีที่แล้ว +1

    Bubble sort is in-place algorithm. Basically it means that no extra space is required by this algorithm.

  • @sjcreations2490
    @sjcreations2490 2 ปีที่แล้ว +1

    Thank you bhaiya. Understood bubble sort completely. 👍👍

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

    Babbar bhaiyya present.
    Class attend karna late aur jaldhi hoga. But class attend karna jarur he🔥

  • @arpitrajput6424
    @arpitrajput6424 2 ปีที่แล้ว +1

    Bhaiya continue video plz waiting lambi ho jati h 😁

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

    I sticked untill last minute. I am liking it.

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

    Babbar bhaiya , please make hand written notes available for remaining lectures. Thank you♥ for listening.

  • @mohammadvaluda6972
    @mohammadvaluda6972 2 ปีที่แล้ว +1

    bubble sort is stable and in-place algorithm.

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

    💝💝💝💝💝💝💝
    Best DSA series on TH-cam
    💝💝💝💝💝💝💝

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

    Class accha laga
    From Bangladesh

  • @priyasharma3549
    @priyasharma3549 2 ปีที่แล้ว +1

    thank you bhaiyaa ❤✌
    done with homework..

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

    In Place Algo: No requirement of Extra Space for manipulating the input.
    Bubble Sort and Selection Sort is the in place sort.

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

    Zabbardast majja aa gaya...

  • @soojalkumar17
    @soojalkumar17 10 หลายเดือนก่อน

    this video is easiest among all previous video

  • @chandanprogrammer
    @chandanprogrammer 2 ปีที่แล้ว +1

    Solve kar diye gfg vala tino question.......

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

    Thanks a lot this is easiest way of code bubble sorting

  • @Codro09
    @Codro09 2 ปีที่แล้ว +3

    thanks babbar sir i made the logic by myself and execute it
    #include
    void bubbleSort(vector& arr, int n)
    {
    // Write your code here.
    for(int i=0;i arr[j])
    swap(arr[i],arr[j]);
    }

    }

    }

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

    Watched, done 🤟, roz video prr 40-45min ki hi bss

  • @bhanudaibhandari7730
    @bhanudaibhandari7730 2 ปีที่แล้ว +1

    Ek dil mil jata toh baat ban jaati

  • @prasadprashantb.4001
    @prasadprashantb.4001 2 ปีที่แล้ว

    Whaaa bhiyaa maza arela hai🙌🙌👍❤

  • @亗Pawar
    @亗Pawar ปีที่แล้ว +1

    ╰‿╯ In-Place :
    in-place means sorting without any extra space requirement.
    In-Place : Bubble Sort, Selection Sort, Insertion & Heap Sort
    Not In-Place : Merge Sort

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

    best explanation i have ever seen

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

    Today's Attendance Marked!💯😊

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

    Bhaiya video done, moving on to next lecture.

  • @mayurshirodkar1571
    @mayurshirodkar1571 2 ปีที่แล้ว +15

    Unable to enter into contest

  • @shubhanshunigam148
    @shubhanshunigam148 2 ปีที่แล้ว +3

    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 !!

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

      th-cam.com/video/SzHFW2i4JDU/w-d-xo.html

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

      th-cam.com/video/XbaA1-BI-zw/w-d-xo.html🙏🏻

  • @nothing351.-
    @nothing351.- 11 หลายเดือนก่อน +1

    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
      @mannmerwana476 11 หลายเดือนก่อน

      Also,in which language are you implementing it?

  • @deepakkumar-6758
    @deepakkumar-6758 ปีที่แล้ว

    Wow sir maja aa gya gajab

  • @ashishtomer9962
    @ashishtomer9962 2 ปีที่แล้ว +7

    Thanks for all the content and this course.
    One request though: Please don't post content everyday. It's getting harder to keep up. Every other day is fine.

    • @devanshsk7222
      @devanshsk7222 2 ปีที่แล้ว +1

      Agreed

    • @shubhambansal1495
      @shubhambansal1495 2 ปีที่แล้ว +6

      You can watch it whenever you are free but there are many students who are in their 3rd yr or 4th and they want it to finish it fast so that they can get placement, so you try to get some time from your routine that will be very helpful for you as well.

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

      th-cam.com/video/XbaA1-BI-zw/w-d-xo.html

  • @VishalGupta-xw2rp
    @VishalGupta-xw2rp 2 ปีที่แล้ว

    Maza aa gaya bhaiya bilkul mast

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

    This is one more method of bubble sort which is according to the example given in the question , we can see in the question that array is sorting from the end , and this method is passing all the test cases.
    for(int i = n-1 ; i >= 1 ; i--){
    bool sorted = false;
    for(int j = n-1 ; j >= n-i ; j--){
    if(arr[j] < arr[j-1]){
    swap(arr[j] , arr[j-1]);
    sorted = true;
    }
    }
    if(sorted == false){
    break;
    }
    }

  • @manavrollno.2314
    @manavrollno.2314 2 ปีที่แล้ว

    I love you mere bhaiya ❤️❤️❤️
    You are the best teacher

  • @ritikamishra1290
    @ritikamishra1290 2 ปีที่แล้ว +1

    Bhaiyya please Sare lectures ke handwritten notes upload kardo plzz