8.3.2 Bubble Sort | Sorting in C++ | Guaranteed Placement Course

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

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

  • @RahulSharma-cy1oz
    @RahulSharma-cy1oz 4 ปีที่แล้ว +148

    Bubble sort -
    Time complexity is O(n^2) , and in best case it is O(n), if the array is already sorted.
    Thank you.

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

      If the array is already sorted, why would you sort? It would be just an iteration over the array so yeah order of n is obv

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

      Big O notation is for worst case. Hence O(n^2).
      For best case, it's big Omega notation
      Hence Ω(n).

  • @aryansharma-wf8sn
    @aryansharma-wf8sn 4 ปีที่แล้ว +86

    Urvi didi teaches soooooo well she is the best 🥰🥰

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

    Trust me she's gonna best instructor , teacher and mentor 🙏🔥💖

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

      Her voice 💘

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

      literally i was impressed by her first few videos and then searched her on youtube but sadly didn't found anything related to her. i wish she would also have channel so we can subscribe her and support her. 😊

    • @arpitchugh7297
      @arpitchugh7297 3 ปีที่แล้ว +9

      The one who wrote the script might be crying in the corner 😂

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

      She is best but don't leave Mysirg samjhe bachye😁😁😁😁

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

      one of the*

  • @chinmaymishra9814
    @chinmaymishra9814 3 ปีที่แล้ว +28

    really felt gratitude didi, thank you for providing such a video for free. It contains the whole 2hrs of class lecture content incorporated in just few minutes, AMAZING.

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

    Notes -
    Bubble Sort - Concept - [0:10]
    Bubble Sort - Code - [4:40]

  • @nayansinghal23
    @nayansinghal23 3 ปีที่แล้ว +22

    Didi from this video i just watched the concept behind bubble sort and the code i printed on my own. The output was correct and I am very happy as I am a beginner and have printed the code very easily. Thx for your lectures.

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

    Ma'am your voice is so listenable. Great explanation. Thank u so much

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

    Bubble sort complexity -
    Time complexity -
    1. Best case - O(n) ( if array is already sorted )
    2. Average case - O(n^2)
    3. Worst case - O(n^2)
    Space complexity - O(the number of extra variables used) if 1 extra variable then O(1) , if 2 extra variable then O(2).

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

    In case, if you are stuck
    Use this:
    int counter=0;
    while(counter

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

      Isme h na 100 0 2 29 le rha hun to 2 0 29 100 output de rha h

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

    Aman bhaiya is doing good for all of us and we should be thankful to him
    This channel deserves 1 million subscriber.

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

    Oh my God
    I was so worried about Data structure
    Then i saw your Video
    It is very Useful
    Keep up the good work

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

    In this video the counter should be intialise to 0 not 1
    And in the for loop I

  • @शिवांकठाकुर-स8ल
    @शिवांकठाकुर-स8ल 2 ปีที่แล้ว

    before apna college ,i was dumb in coding,concept of coding went to upper side from my head,One day i meet to my brother,He suggested me to see coding on apna college,,and then after this,, now I can say that i can do something in coding.Love U all apna college team,,One day I shall meet to apna college team sure,specially Shradhha di.

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

    In while loop, its while(counter

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

      yes you are right

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

    Thanks sir for this series , this help me more for my placement preparation

    • @negasonicteenagewarhead
      @negasonicteenagewarhead 4 ปีที่แล้ว

      @@SahilSharma-vl9rk bro it's less than n

    • @prmomaths757
      @prmomaths757 4 ปีที่แล้ว

      @@negasonicteenagewarhead what do you mean?

    • @rajlaxmipaul21
      @rajlaxmipaul21 4 ปีที่แล้ว

      @@negasonicteenagewarhead
      you have n o t said anything exactly "in a clear way".
      soou.. wht's da point of commenting “

    • @negasonicteenagewarhead
      @negasonicteenagewarhead 4 ปีที่แล้ว

      @@rajlaxmipaul21 The person I replied to has deleted his comment

    • @rajlaxmipaul21
      @rajlaxmipaul21 4 ปีที่แล้ว

      @@negasonicteenagewarhead oou i didn't understand dat

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

    I'm of class 11th following your every video .......from Andhra pradesh

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

    You can also do this simply with the help of a for loop like this
    for (int i = 0; i < n - 1; i++)
    {
    for (int j = 0; j < n - i; j++)
    {
    if (arr[j + 1] < arr[j])
    {
    temp = arr[j + 1];
    arr[j + 1] = arr[j];
    arr[j] = temp;
    }
    }
    }

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

      you can also take initial value of i=1;for faster code

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

      the inner loop would be:
      for(int j = 0; j < n - i - 1; j++)
      you may cross-check to see 😊

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

    Mention complexity for each algorithm at the end of algorithm

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

      O(n²) sabka yahi hoga

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

    well its (counter

    • @gauravjain1444
      @gauravjain1444 4 ปีที่แล้ว

      It is not just because we will have to do one less iteration , in the code we are comparing the (i th) and (i+1 th) terms. So we keep the counter < n-1 so that when we are checking for the (i+1 th) term we do not get *INDEX OUT OF BOUND ERROR*

    • @shaleenbadola4514
      @shaleenbadola4514 4 ปีที่แล้ว

      @@gauravjain1444 ya i know that but it should be counter

    • @gauravjain1444
      @gauravjain1444 4 ปีที่แล้ว

      @@shaleenbadola4514 counter

    • @shaleenbadola4514
      @shaleenbadola4514 4 ปีที่แล้ว

      @@gauravjain1444 i agree with counter not should be initialized with 0 but in video di said counter

    • @gauravjain1444
      @gauravjain1444 4 ปีที่แล้ว

      @@shaleenbadola4514 see the video once again they edited the -1 part out 😅 .she says n-1 but in the code she writes n

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

    I was able to code the bubble sort algorithm just by the explanation part of this video. Thank you very much !!

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

    We don’t need to run n times this algorithm If we don’t find any swapping. It’s like break when no bubbles happens.
    As per video...
    Current Time complexity : O(N*N)
    But it can give O(N) in best case eg. already sorted array. Just check by boolean that if no bubble produce ( no swapping occurs ) break loop. 👌

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

      I agree with you that it will give O(n) time complexity in best case. But that's not our concern. We have to find some algorithm so that the worst case time complexity gets minimized ,which according to me, can't be lesser than O(n^2) in the bubble sort method. If there's a way to decrease the worst case complexity here please share. 🙏

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

      Great.....

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

      You are right bro, this is updated bubble sort that you are talking about. 👍👍

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

      Aap sab log kaafi padhe likhe lag rahe ho, aap logo ki job lag gayi h kya yeh videos dekhne k baad ?

    • @svworld01
      @svworld01 4 ปีที่แล้ว

      @@anakingaming3687 pahle hi lag chuki hai job bhai.. Pr aise q bol rhe ho?

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

    beach mai ak din ka gaap ho gya tha,yesterday their was no new video, or meri to tention start hone laga tha, and that's why egarly waiting for todays video.

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

    Best way for learning apna college by shraddha didi❤

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

    [CORRECTION]
    In the while statement of the program, (counter

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

      Yup you are right my brother but no matter if it takes one more iteration because array is already sorted. Yes it will take little more time. And this is not a good practice to make this mistake because you know this that it will take only "n-1" iteration to sort the array
      Hope you got your answer 👍👍👍😀😀😃

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

      no bro. there is no mistake as counter is starting from 1 and not from 0. Otherwise you would be correct.
      since it is starting from 1, loop repeats (n-1) times only.

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

      I need help plz!
      As we know there are (n-1) iterations
      So why we take (counter

    • @meme-qw6hl
      @meme-qw6hl 3 ปีที่แล้ว +3

      @@vipulbhardwaj8659 it is for u
      Instade of using *whileloop* and *counter* u can use this
      for(int j=0;j

    • @meme-qw6hl
      @meme-qw6hl 3 ปีที่แล้ว

      Instade of using *whileloop* and *counter* u can use this
      for(int j=0;j

  • @yogeshvats1999
    @yogeshvats1999 4 ปีที่แล้ว

    Very easy to understand it now rather than boring lecture in class

  • @ajaykiran6
    @ajaykiran6 4 ปีที่แล้ว

    Thanks a lot, ye bubble sort confuse kar diya tha teachers ne....ab jaake iska concept dhang se samajh aaya hai, final year mai hu abhi ......this series gives me hope that even I can learn these concepts properly.

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

    5:25 didi ham ek swap() function ka bhi to use kar sakte hai bas swap(arr[i], arr[i+1]); ek line me ho jata 3 lines ke jagah

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

      nah ...then u would have to create the whole funtion for swap() seperately >....thus same amount of work...Use funtion only when u need to repeatedly use it

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

      ​@@ashwinpillai9291 no in the bits/stdc++.h header file it's already present
      we can use that in place of iostream

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

      @@harshkantbhatnagar360 We can also use this function using iostream header file see this code
      #include
      using namespace std;
      int main(){
      int a,b;
      cin>>a>>b;
      cout

    • @harshkantbhatnagar360
      @harshkantbhatnagar360 3 ปีที่แล้ว

      @@namitgarg3364 okay bro

    • @namitgarg3364
      @namitgarg3364 3 ปีที่แล้ว

      @@harshkantbhatnagar360 No problem bro

  • @AkashVerma-sh5pb
    @AkashVerma-sh5pb 3 ปีที่แล้ว +3

    instead of the while loop we can also do this :
    for(i=count-2;i>=0;i--){
    for(j=0;jnumber[j+1]){
    temp=number[j];
    number[j]=number[j+1];
    number[j+1]=temp;

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

    Awesome mam after trying to visualise continue 8 hr then i come to video and in shot i got it all points thanku mam

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

    Bilkul Sare doubts clear ho gaye mere..

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

    Thank u aman bhaiya and mam best explanation ever watched 😍🖤❤❤❤

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

    Thank you so much AMAN BHAIYA and the whole team of APNA COLLEGE ❤️❤️✨✨

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

    Consistency = Aman Bhaiya
    And we all of us also be in a consistent manner always💥🙋🏻‍♂️

  • @sudarshanmhaisdhune1039
    @sudarshanmhaisdhune1039 3 ปีที่แล้ว

    Wow!.....short, crisp and to-the-point..

  • @jaimodkumar5282
    @jaimodkumar5282 3 ปีที่แล้ว

    It's very fast and effective method to solve bubble sort as how to works and implement in program

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

    It took my clg sooo many hours to explain this and still kuch samjh nhi aaya.. But thanku didi and aman bhaiya for such amazing content.. Thankyou❤❤

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

    *NOTE*- COUNTER MUST BE INITIALIZED WITH 0 INSTEAD OF 1, as she explains... But taken 1 mistakenly.... #CHLO PHODTE HYY ✨⚡😎

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

    imma using this explanation for python class 12
    thankyou di and bhaiya

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

    Nice work by didi and aman bhaiya

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

    Thank you so much. You made these concepts so easy for me that looked difficult previously for me. Now, I taught these to my fellow classmates even before they knew.

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

    A tiny mistake at 4:59 where u said counter

    • @meme-qw6hl
      @meme-qw6hl 3 ปีที่แล้ว

      Instade of using *whileloop* and *counter* u can use this
      for(int j=0;j

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

    Counter < n hoga in while condition. I think.
    Ma'am ke code mei bhi -1 type nahi hua (maybe due to some error)

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

    well i prefer this code.
    //Sorting is done here
    for(int i=0; i

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

    I'm very dumb in computer science but the way she explained really helped me

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

    BEST Bubble Sort VDO ever...❤

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

    in while loop counter is not less than n-1 its while( counter < n )

    • @ByteBit4k
      @ByteBit4k 9 หลายเดือนก่อน

      either it is

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

    ek to awaaz itni pyaari hai upar se padhati bhi world class hain

  • @divyamharbola6876
    @divyamharbola6876 3 ปีที่แล้ว

    Everyone do like man, They are providing Platinum for free.

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

    I recommend this video. I am very happy and grateful.

  • @prajnagupta1287
    @prajnagupta1287 3 ปีที่แล้ว +7

    This is awesome! Very concise and informative😍

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

    Name was corrected, but *also correct the description box from 9.3.1 to 8.3.1 !* This is Aman Bhaiya, 😉 No Chance of Mistakes.
    Even when once there was a error in animation in Maths, he corrected it in the comments !!!

  • @sevenhours1137
    @sevenhours1137 3 ปีที่แล้ว

    best explanation on this topic, the visuals were extraordinarily effective

  • @GoD_AbHI.
    @GoD_AbHI. ปีที่แล้ว

    Best Explanation I ever had.😊

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

    Thank u aman bhaia mam i m loving your explanation ❤ 😍

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

    Didi bahut achha hai thanks

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

    in place of while loop , if we use for loop , have same time complexity , but space complexity may be improved.

  • @sharathk568
    @sharathk568 3 ปีที่แล้ว

    Below is the bubble sort that i have done based on her explaination.....any comments on its time complexity.
    for(int i=0; i

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

    Hi everyone what's up....at 0:01👌👌👌

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

    just want to notify that there is an error in notes ... in the for loop statement of bubble sort ...n-counter will be there instead of n-counter-1 :)

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

      its correct , the code written in video is wrong.

    • @lakshyajoshi5413
      @lakshyajoshi5413 3 ปีที่แล้ว

      the code in video and in notes both are correct
      look in the video counter=1 and in notes counter=0

    • @abhishekraibagi2869
      @abhishekraibagi2869 3 ปีที่แล้ว

      @@lakshyajoshi5413 but code is not working it's showing exit with code status 0

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

    Dear sister your awesome I like your teaching 🥰

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

    The great teaching method, Thanks for serving us these videos, and I have a suggestion please make basic projects and shout them as lessons.
    thank you so much for this kind of teaching,

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

    There is a mistake in this code ,the last input no is not get check or swap.
    Int counter is starting form 1 and if the input is
    (54321 it will give 23451 ) it is not checking the last element.
    Plz check this .
    Y the counter is not staring from 0.

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

    Very well explained Shradha didi

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

    YOU ARE doing very good job ,best teacher!!

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

    Everyone is a legend until aman bhaiya walks in😎😎😎

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

    Thank you clear all doubts

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

    superb explanation👌👌

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

    web development kab aayega..

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

      Khud seek

    • @siddheshabnave2101
      @siddheshabnave2101 4 ปีที่แล้ว

      Aa jayega aur news chaiye toh unke main channel ja

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

      @@vickys40 😂😂

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

      Try The Net Ninja's tutorial on his channel. Will give you a big headstart until Apni Kaksha's course comes.

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

      @@itsmepiyushsaha Yea you are right

  • @kv-ll2fn
    @kv-ll2fn 3 หลายเดือนก่อน +1

    i have done c++ the much it is needed for dsa. you explain the dry run thing very well but when it comes to code there are many things i am not understanding.

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

    dislikers are Chintu's ghar vaale who paid 100k plus rs to white hate 😂

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

    Awesome explanation 👌👍

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

    Very nicely explained 👍

  • @parth8746
    @parth8746 3 ปีที่แล้ว

    Awesome explaining in just 7 min.

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

    Bhaiya apni kaksha mai pls thoda jaldi jaldi video daalo kyuki humare per board hai agle mahine se hum of wale hai bhaiya aur kv mai pre board pahele hota hai...
    Mujhe pata hai app bahut mahenat kar rahe ho aur animation mai time bhi lagta hai lekin fir bhi bhaiya thoda jaldi🙏🙏🙏

  • @KhinHanDi-o8o
    @KhinHanDi-o8o ปีที่แล้ว

    very informative good video💓

  • @NishantSingh-br6iu
    @NishantSingh-br6iu 4 ปีที่แล้ว +26

    East or West Urvi Di is the best

    • @A7503-d4i
      @A7503-d4i 4 ปีที่แล้ว +1

      how did you get to know her name ?

    • @harshraj-yz3pf
      @harshraj-yz3pf 2 ปีที่แล้ว

      Wo jab Apne code ko run Karti hai ...toh waha pe unka Naam show hota hai

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

      Her name is shardha

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

    Thank you for explaning bubble sort in concise way easily🙂

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

    We can also use this method, it will be in the same structure as Selection Sort
    #include
    using namespace std;
    int main()
    {
    int n;
    cin>>n;
    int arr[n];
    for (int i = 0; i >arr[i];
    }
    for(int i=0;i

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

      You just increased the time of the compilation without any reason.. 🥴

  • @hisokamorrow7976
    @hisokamorrow7976 3 ปีที่แล้ว

    apart from using 'while + for' loop, one can also use double-for loops:
    for(int i=0;i

    • @mansha6566
      @mansha6566 3 ปีที่แล้ว

      i think j's loops should be from 0 to n - i - 1?

    • @hisokamorrow7976
      @hisokamorrow7976 3 ปีที่แล้ว

      @@mansha6566 I dont think so, for i=0 it's supposed to run till 5(4th index) and for i=1 till 5-1=4(3rd index)

    • @mansha6566
      @mansha6566 3 ปีที่แล้ว

      @@hisokamorrow7976 I don't think so, for i=0 ,j should run from 0 to 3 only ,on fourth iteration(for j=3) you will get largest element at the end of array ,plz check

    • @hisokamorrow7976
      @hisokamorrow7976 3 ปีที่แล้ว

      @@mansha6566 Ah! I got what you're saying thank you for correcting, I mistook this comment as the one on search video. Thanks

    • @mansha6566
      @mansha6566 3 ปีที่แล้ว

      @@hisokamorrow7976 ☺️🤘

  • @uttamkarmakarece3534
    @uttamkarmakarece3534 3 ปีที่แล้ว

    I don't think anyone can explain the bubble concept so easily than how our Didi teaches us 😍❤️
    *** The condition inside while loop should be counter

    • @sourabhsingh5941
      @sourabhsingh5941 3 ปีที่แล้ว

      no bro u are wrong
      if the condition inside while loop is counter < n-1 then it actually means n-2
      because the relational operator is "

    • @novagames5719
      @novagames5719 3 ปีที่แล้ว

      @@sourabhsingh5941 he is correct bro my code won't run on that condition given in lecture

  • @HeaDHunteR-xu7we
    @HeaDHunteR-xu7we 4 ปีที่แล้ว +3

    Bhaiya , please make a video on IP university order of choice filling 🙏🙏

  • @examnotes-jee3184
    @examnotes-jee3184 4 ปีที่แล้ว +3

    What a short🔥🔥😍

  • @sumitbangra8359
    @sumitbangra8359 3 ปีที่แล้ว

    Complete code ek saath dikh jata to shi rhta😊
    baaki video jbrdsttt hai 👌👌💥💥💥

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

    I love the 15 chocolate example

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

    Nice explained and easy to understand ☺️
    Thank you so much mam👍

  • @vishalvarma8300
    @vishalvarma8300 3 ปีที่แล้ว +8

    Hello team, Please try to mention complexity analysis for each necessary videos and if possible please inculde the puzzles similar to later videos
    Overall learning experience is too good and simple and best.
    Thank you.

  • @RahmanKhan-dw6sz
    @RahmanKhan-dw6sz 3 ปีที่แล้ว

    thank you very much yrr it really helps ......and the music is also motivating....

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

    Time complexity:O(N^2)

  • @MohitSharma-jf5jj
    @MohitSharma-jf5jj 3 ปีที่แล้ว +4

    Hi di
    I didn't understand one thing in the video. At 3:40 you said that for n elements in the array, we have to do (n-1) iterations.
    But does the number of iterations not vary from example to example ?
    Like for your example you get the sorted array in 5 iterations but if you take something like {45,2,31,27,8,36} It takes only 3 iterations though there are 6 elements. Pls clarify anyone

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

      the loop will continue as long as this condition is true -> while(count < n). when count is 1, we do the first iteration and the array becomes {2,31,27,8,36,45} and after this the count becomes count++ that is count = 2. similarly by the time count becomes 3 our array is already sorted {2,8,27,31,36,45}. cool? ab hamara loop jabtak while(count < n) wala condition false nai hojata ye chalta rahega. so now after 3rd loop our count will become 4 and this time it will simply ignore the if condition cause ar[i] is no longer less than ar[i+1] and our count becomes 5 now. so we go into our for loop again and ignore the if condition once more, then we get out of our for loop and this time our count becomes 6! which goes against while(count < n) because n is the size of array which in your case is 6. and 6 is not less than 6. and then we exit the entire loop and our array is sorted.

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

      @@benmyths thankyou so much man you just cleared the confusion

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

    DIDI your voice is so attractive and I like your intro as well as your content is fantastic more help to me preparation for placement

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

    nice explaination mam.....

  • @HamadKhan-k5x
    @HamadKhan-k5x 16 วันที่ผ่านมา

    loved your unique method of teaching programming.....its becoming so easy for me 😍😍😍😍😍😍😍😍😍😍😍😍😄😄😄😄😄😄😄😄🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰

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

    Amazing lecture 👍

    • @aditshah2662
      @aditshah2662 4 ปีที่แล้ว

      @@SahilSharma-vl9rk editing mistake

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

      @@SahilSharma-vl9rk n-1 in index but for size it will be run

    • @aditshah2662
      @aditshah2662 4 ปีที่แล้ว

      @@SahilSharma-vl9rk bhai mereko nahi pata hai i m a class 12th student..... i think it might be editing mistake

    • @novaprime8735
      @novaprime8735 4 ปีที่แล้ว

      @@aditshah2662 bhai explanation me n-1 times tq loop chalane ki baat ki gai hai na ki n-1 index tq....
      Kuch bhi galat nahi hai.....

    • @aditshah2662
      @aditshah2662 4 ปีที่แล้ว

      @@novaprime8735 ok

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

    Wow🤟🔥🔥🔥.. Excellent

  • @tilakjilka6446
    @tilakjilka6446 3 ปีที่แล้ว

    I think the whole algo is correct but instead of creating temp variable for swapping we can like use function swap( arr [ i+1], arr[i] )
    this will reduce time and logic is simple too !
    what say !

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

    explained so perfectly i am going to complete this series asap once I am done with my exam

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

    Apti or DBMS ke liye bhi bana d0 bhaiiyyaa🥺🥺

  • @tejasvani7163
    @tejasvani7163 4 ปีที่แล้ว

    Support Aman bhaiya he's doing great job for us

  • @Rishabh_Dayal4444
    @Rishabh_Dayal4444 3 ปีที่แล้ว

    sir really thanx a lot you all are doing nice job

  • @Akash-rs2yp
    @Akash-rs2yp ปีที่แล้ว

    Instead of using 'while' loop, can we use 'for' loop as for(int i = 1; i < n; i++) ?