Lecture 21: Insertion Sort with Theory and Code

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • What is Sorting in C++
    Insertion sort in C++
    Insertion sort with different approach
    Bubble sort:
    Day 29/180, #180daysofcode #180 hard
    We have made a whole video in c++, How to solve pattern print problem. We explained everything with the help of code.
    We are doing 180 days challenge and going to complete the whole course within the duration with quality content on RUclips. I am on the mission to create a tech revolution in our country and in upcoming future we want to create a tech which will create many jobs in India.
    Video will come on Mon-Fri at 6am in the morning
    Join Our Whatsapp Channel: whatsapp.com/c...
    CoderArmy Website (Buy premium feature at 99 Only for 6 months): www.coderarmy.in
    Premium Feature includes:
    1: Doubt Support
    2: Mentorship session
    3: Placement Support to Top Students
    4: Resume and Linkedin Profile Building
    5: Coding contest twice a month
    6: Course completion Certificate
    7: Home work Discussion
    HomeWork Sheet: drive.google.c...
    DSA Course for free
    C++ Free Course
    Rohit Negi DSA Course C++
    Coder Army DSA Course c++
    Function in C++
    Pass by value.
    Pass by reference
    C++ important topics
    connect to me on Instagram: rohit978.page....
    Linkedin: rohit978.page....
    Telegram: rohit978.page....

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

  • @CoderArmy9
    @CoderArmy9  11 месяцев назад +73

    Hello Coder Army, Welcome back to 5th week....

    • @YashSaini007
      @YashSaini007 11 месяцев назад

      Good Morning Bhaiya

    • @vishalpratapsingh6994
      @vishalpratapsingh6994 11 месяцев назад

      Good morning bhaiya

    • @saireddysathi7585
      @saireddysathi7585 11 месяцев назад

      Bro I am one of your subscriber from AP and my mother tongue is Telugu. I am interested to follow your classes but not getting the language .can you please provide English subtitles so it will be more beneficial to students like me please respond bhaiyaa

    • @HONESTLYALOK
      @HONESTLYALOK 11 месяцев назад

      #coderarmy

    • @visibleknowledge4907
      @visibleknowledge4907 3 дня назад

      Gm bhaiya ❤

  • @Aman.Singh.Rajput1234
    @Aman.Singh.Rajput1234 11 месяцев назад +12

    Big thanks for the awesome free DSA Course! Your teaching rocks, and you're making learning super fun and easy. Appreciate your generosity! 🙏❤️

  • @Sajal_Mallick_vlogs
    @Sajal_Mallick_vlogs 7 месяцев назад +6

    Day 27 done and dusted..... Best explaination ever....Thank you bhaiya... #consistency

  • @YashSaini007
    @YashSaini007 11 месяцев назад +19

    Thank You Bhaiya for providing us the best DSA lecture.

  • @yashubisen7131
    @yashubisen7131 11 месяцев назад +5

    Hello bhaiya , thank u so much
    Insertion and sorting in array college me teacher ne padaya tha sur ke upar se gaya tha but ab chote chote vo sare concept clear ho rahe hai ❤❤

  • @Lnct1833g
    @Lnct1833g 6 месяцев назад +3

    bhaiya shi bole to ap se padh kr coding me maza ane lga hai ap ache se explain krtea ho thank🥰🥰🥰🥰

  • @hetakshjp9837
    @hetakshjp9837 8 дней назад

    Bro You are providing very good content to improve for Indians who didn't get knowledge in collage because of wrong faculty

  • @souravsanyal2554
    @souravsanyal2554 7 месяцев назад +1

    I am here for a revise of this concept ❤ no body can teach better than you. You can explain complex topics in a very easy way. Thank you Rohit Negi bhai . You are the best ❤

  • @Ayushi.soni_31
    @Ayushi.soni_31 28 дней назад +1

    Success wahi hoga bas Jo end Tak tikega 🔥👍

    • @K-lz3wu
      @K-lz3wu 5 дней назад +1

      To fir ready ho ? 😂

  • @MayureshDagale-sg6op
    @MayureshDagale-sg6op Месяц назад +3

    homework : insertion sort(increasing) sorting from last.
    code :
    #include
    using namespace std;
    int main()
    { int size, i, j;
    cout size ;
    int arr[size];
    cout =0 ; i--){
    for(j=i ; jarr[j+1]){
    swap(arr[j],arr[j+1]);
    }
    else{
    break;
    }
    }
    }

    cout

  • @strangerthings7412
    @strangerthings7412 11 месяцев назад +6

    Bhaiya can you take questions directly from the coding platforms like leetcode geeks for geeks like you did in one of the videos that is really good way of learning and we all can be comfortable in coding platforms also btw thanks for the amazing course☺️☺️☺️🙏

  • @photography7315
    @photography7315 11 месяцев назад +1

    Bhaiya aapke videos pe like aaye chahe nii views aaye chaye nii but you are best teacher and whatever you are giving in this costly world it's amazing for all of us aspirants❤❤❤
    Thankyou bhaiya

  • @EStoCS8
    @EStoCS8 Месяц назад +1

    love you from Uttarakhand techmcu

  • @sanjanad267
    @sanjanad267 3 месяца назад +1

    Crystal🔮 clear bhaiya.... ❤

  • @hetakshjp9837
    @hetakshjp9837 8 дней назад

    Keep it and All the very best!

  • @tusharsingh7927
    @tusharsingh7927 7 месяцев назад +1

    Lecture 21 completed ✅

  • @sumitvishwakarma1075
    @sumitvishwakarma1075 11 месяцев назад +3

    1 week of DSA completed now 2 week started
    Thankyou bhaiya ❤❤

  • @joydeep-halder
    @joydeep-halder 11 месяцев назад +4

    HW Solution 2 : Insertion sort from right side
    for(int i=n-2; i>=0; - - i)
    {
    int j = i;
    while (arr[j] > arr[j + 1] && j < n - 1)
    {
    int temp = arr[j];
    arr[j] = arr[j + 1];
    arr[j + 1] = temp;
    j++;
    }
    }

  • @sajid7721
    @sajid7721 7 месяцев назад +1

    Thanks a lot bhaiya

  • @Royal_Bunt
    @Royal_Bunt 11 месяцев назад +3

    Please put the time stamps .....much request it will be more helpful

  • @relaxingtime2411
    @relaxingtime2411 11 месяцев назад +2

    Thank you bahiya for this amazing course ♥

  • @kittunavneet2020
    @kittunavneet2020 3 месяца назад

    Thanks sir your teaching method is very gorgeous ❤❤❤

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

    It's around 03.00 AM, finally successfully completed these 21 videos ... Thank you Bhaiya .....

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

    lessgooo one more lectue completed with HW
    aaj ka taget poora binary search❤

  • @heetpatel3037
    @heetpatel3037 7 месяцев назад +1

    Chamka bhaiya chamka 👍🏻

  • @RJFF3-r7w
    @RJFF3-r7w 3 месяца назад

    Best Explaination I have ever seen,thank you bhaiya for this type of contents.😍

  • @mehedihasannnnn
    @mehedihasannnnn 11 месяцев назад +1

    Thank you vaiya hamare liye itna sochne ke liye....😘😘😘

  • @hetakshjp9837
    @hetakshjp9837 8 дней назад

    Bharat Mata Ko Ap pr Garv H mere bhai.

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

    Great Explanation Sir🙏🙇‍♂✨💖

  • @YashKumar-nn9mc
    @YashKumar-nn9mc 6 месяцев назад

    best dsa course there is

  • @Armoured_Traveller
    @Armoured_Traveller 11 месяцев назад

    Day 29 ✅
    Now completed because at early morning I was traveling
    Thanks for the best content 🎉

  • @factydheeraj1277
    @factydheeraj1277 11 месяцев назад +1

    First viewer
    Bhaiya Kal aapka routine wala video dekh ker kaafi Acha or inspiring feel juaa

    • @CoderArmy9
      @CoderArmy9  11 месяцев назад

      Great job, keep going...❤

  • @harshyadav1214
    @harshyadav1214 6 месяцев назад +1

    beautiful lecture 😇😇

  • @AjeetTiwari018
    @AjeetTiwari018 11 месяцев назад

    Bhaiya sayad aap mera ye cmt padho 🥺 ye course bhut mast hai I think ise koi bhi first, second ya third year wlaa kr skta hai 🙁 but bhaiya mai algorithm samjh leta hu aapse aur meko c++ bhi aane lgi sacu me 😅.... Subah subah ek lecture lo c++ seekho baki bhaiya mai 4th year me hu ❤ core language java but aapse padhne me maja aa rha kuch concept padh leta hu jaise sorting, searching🔍 ye sab thankuu bhaiya 🌟🌟🌟 I think you deserve more and more followers ❤🥰

  • @savvykhushi5143
    @savvykhushi5143 11 месяцев назад +1

    Thank you so much
    God bless u

  • @SunnyKadian1
    @SunnyKadian1 11 месяцев назад

    Ok h bro sb. ❤❤❤❤.
    Samajh aagya sb kuch ek baar video dubra dekhni pdi thodi c bich me samajh nhi aaya but ab sb clear h 🥰

  • @Factshub_hindi
    @Factshub_hindi 25 дней назад

    L-21 done ✅

  • @CHAUDHARY_PRAYAS
    @CHAUDHARY_PRAYAS 11 месяцев назад +1

    #29 out of 180

  • @Updatedknowledge9
    @Updatedknowledge9 11 месяцев назад

    Ab coder / programmer👨‍💻 banana huwa aasan with rohit sir ❤❤

  • @pranaypaul6361
    @pranaypaul6361 7 месяцев назад

    excellent simplistic analysis n perfect pace.

  • @asmazahra579
    @asmazahra579 11 месяцев назад +1

    Awesome explanation...🎉

  • @amankumaramar271
    @amankumaramar271 11 месяцев назад +1

    47:01
    //THANK YOU SO MUCH BHAIYA
    //INSERTION SORT INCREASING ORDER FROM LAST
    #include
    using namespace std;
    int main(){
    int arr[6]={8,3,1,6,4,5};
    for(int i=5;i>0;i--)
    {
    for(int j=i-1;jarr[j+1])
    swap(arr[j],arr[j+1]);
    else
    break;
    }
    }
    for(int i=0;i

  • @legendasif5058
    @legendasif5058 21 день назад

    Very very thanks 🙏🙏🙏 for DSA series, batao chamka nhi chamka 😂😂

  • @mantuyt-vz8tb
    @mantuyt-vz8tb 8 месяцев назад

    he he😁 ye bhi samjh gya🙂🙃
    धन्यवाद sir🫡

  • @RAGHURAJPRATAPSINGH-qf3zx
    @RAGHURAJPRATAPSINGH-qf3zx 11 месяцев назад +1

    2d array kb padhayenge ?

  • @animeshkumarsingh4291
    @animeshkumarsingh4291 11 месяцев назад

    #180DaysofCode
    Day - 29 Lecture -21
    Successfully Completed ✅✅✅

  • @dontreadmybanner2002
    @dontreadmybanner2002 Месяц назад

    Whorse increasing order insertion sorting
    For(i=0;i0;j--)
    {
    If(arr[j-1]>arr[j])
    Swap(arr[j-1],arr[j])
    }
    }

  • @Hindi776
    @Hindi776 8 месяцев назад

    Bhai gajab padhte hai app thank you so much

  • @ankushladani496
    @ankushladani496 11 месяцев назад +1

    Thanks Bhaiya...❤🎉

  • @-BCS-VarshaVaishnav
    @-BCS-VarshaVaishnav 10 месяцев назад

    29/180 done
    Thanku bhaiya🙃

  • @arpitkhandelwal8280
    @arpitkhandelwal8280 3 месяца назад

    Let's begin with 5th week !!!!

  • @chandrudaykarigar
    @chandrudaykarigar 11 месяцев назад +1

    Awesome lecture bhaiya 😍 Thanks you

  • @deeprajsengar4081
    @deeprajsengar4081 7 месяцев назад

    47:30

  • @onlystudytrichycoding6982
    @onlystudytrichycoding6982 11 месяцев назад +1

    complted ✅✅✅✅

  • @Feelthemusic-ql6qx
    @Feelthemusic-ql6qx 8 месяцев назад

    In the example if the array is [9 4 5 6 7] then the array will stop after 4>5 will not true and 9 will remain at index 0 . which is wrong. After sorting till 2nd index.

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

    Day 21✅

  • @GopalKumar-xu3iw
    @GopalKumar-xu3iw 11 месяцев назад +1

    Day 29 / 180 days complete done ✅✅✅✅✅✅✅✅

  • @yes-its-goliya
    @yes-its-goliya 3 месяца назад

    🏃‍♀Day 6✅

  • @Jawed45621
    @Jawed45621 Месяц назад

    best

  • @ankushladani496
    @ankushladani496 11 месяцев назад

    Done Bhaiya... 29/180 ✅

  • @tanishqdixit6313
    @tanishqdixit6313 11 месяцев назад

    Day 29/180 completed

  • @Engineer_hu1
    @Engineer_hu1 7 месяцев назад

    revising the concept

  • @rohitkr.6408
    @rohitkr.6408 11 месяцев назад

    Day-29🔥 Completed
    #180daysofcode
    covering backlogs

  • @KnowWithAbhi
    @KnowWithAbhi 5 месяцев назад

  • @mydiaryloves
    @mydiaryloves 7 месяцев назад

    Thank you bhaiya .

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

    Bhaiya I am covering these lecture and I also want to go for premium ,Is it still for 99.

  • @PawaniPukkali
    @PawaniPukkali 5 месяцев назад

    day 21 is completed

  • @tusharman9360
    @tusharman9360 7 месяцев назад

    Lecture 21 complete ✅

  • @abytespaceneeded
    @abytespaceneeded 11 месяцев назад

    Day 29 Completed ✅✅💝💝💥💥

  • @sachinprajapati815
    @sachinprajapati815 11 месяцев назад

    day29 completed, thank you bhaiya

  • @Vishal_0841
    @Vishal_0841 11 месяцев назад

    2week completed bhaiya jee❤

  • @touyube5154
    @touyube5154 11 месяцев назад

    Bhaiya G week me ek live class le lijiye jisme week ke sare homeworl discuss ho aur isse revision v tagdi wali ho jayegi..
    ky kehte ho #coderarmy 💙💙

  • @anshikathakur3567
    @anshikathakur3567 7 месяцев назад

    lecture 21✅

  • @pintuprusty9801
    @pintuprusty9801 11 месяцев назад

    thanks for bheya
    for provide dsa series 🤩😍🥰

  • @adarshsingh3985
    @adarshsingh3985 3 месяца назад

    Homework done

  • @anupamatul9393
    @anupamatul9393 7 месяцев назад

    Thankyou Bhiya

  • @anilbillupati
    @anilbillupati 11 месяцев назад

    amazing lecture with great explanation

  • @NoorFatima-bs9vp
    @NoorFatima-bs9vp 2 месяца назад

    grinding

  • @riteshhhhh_01
    @riteshhhhh_01 11 месяцев назад

    Bhaiya ek request thi ki next sunday ko bit manipulation pe question kara dete

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

    21 din 21 lec done ☑☑☑☑

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

    Thankx bhaiya

  • @sakshinadankar3782
    @sakshinadankar3782 8 месяцев назад

    Thank u sir😊🙏

  • @Kanishk-nx4xg
    @Kanishk-nx4xg 7 месяцев назад

    Home work done

  • @nitianatul
    @nitianatul 3 дня назад

    38:14 = code part

  • @SurajKumar-vc4du
    @SurajKumar-vc4du 11 месяцев назад

    radhe radhe

  • @creativeminds6694
    @creativeminds6694 25 дней назад

    aapke first code ke example mein 4 se pehle koi aisa number hota 5 se bada ho to ye code to galat hai

  • @drlovephukn
    @drlovephukn 11 месяцев назад

    29/180 Day's full power full power ❤❤❤

  • @samander2934
    @samander2934 11 месяцев назад

    Thanks Bhai ji

  • @abhisheksinghmehra9576
    @abhisheksinghmehra9576 11 месяцев назад

    Great Explanation🔥🔥🔥

  • @Islamicinformation-u3g
    @Islamicinformation-u3g 11 месяцев назад

    Gergeous lecture

  • @ammaraftab2243
    @ammaraftab2243 11 месяцев назад

    Day 8/159
    I think now you will raise the bar like anything

    • @CoderArmy9
      @CoderArmy9  11 месяцев назад +1

      Together we will

  • @siddhantpathak3120
    @siddhantpathak3120 11 месяцев назад

    Maintaining Consistency

    • @CoderArmy9
      @CoderArmy9  11 месяцев назад

      Good morning bhai❤

  • @raonik1
    @raonik1 11 месяцев назад

    Great

  • @Saumya_9790
    @Saumya_9790 11 месяцев назад

    Good morning Bhaiya ❤

  • @donbhaimotivational
    @donbhaimotivational 11 месяцев назад

    Thanks bhaiya ❤

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

    💥💥💥

  • @warrior9993
    @warrior9993 11 месяцев назад

    Full energy day 💪 😀 ❤29

  • @adityapawar6174
    @adityapawar6174 3 месяца назад

    Lecture 21 Check ✅

  • @niketan46
    @niketan46 11 месяцев назад

    MAZA A GAYA DA

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

    #Chamka Insertion is Sorted

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

      Good Job Bhai, kaafi achee se padai kar rhe ho, keep it up

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

      @@CoderArmy9 Bhaiya aapke saath kaam Krne ke liye skilled up ho rha hu.