L-3.5: Insertion Sort | Time Complexity Analysis | Stable Sort | Inplace Sorting

Поділитися
Вставка
  • Опубліковано 15 гру 2024

КОМЕНТАРІ • 364

  • @Nizamkakar
    @Nizamkakar 3 роки тому +89

    Sir app ko 2 sal se follow kar raha hon, is video ma pehle dafa dekha aap muskara rahe hain. khosh raho Sir❤

  • @Comedypoint06
    @Comedypoint06 Рік тому +285

    Leagend watching it one day before exam 😅😅😅😅😅

    • @shujaatalihashim428
      @shujaatalihashim428 8 місяців тому +11

      I have exam in 4 hours

    • @vidhidalsaniya4089
      @vidhidalsaniya4089 8 місяців тому +4

      One day 😂I have my exam in two hours and I watching it right now

    • @Umairimran-j9i
      @Umairimran-j9i 8 місяців тому

      No bro idhr pokara na lag jai 1 month phela he start KR RHA ho

    • @Mafiaking661
      @Mafiaking661 7 місяців тому +1

      Yesss tomorrow is my CS exam😂

    • @royal93987
      @royal93987 7 місяців тому +8

      Super legend watching 1 hr before exam 😂😂

  • @Kushaan_1
    @Kushaan_1 3 роки тому +56

    Your pedagogy is unique and focused on gate aspirants..
    Thank u sir!

    • @itsfunny01
      @itsfunny01 9 місяців тому +2

      kya hua bro gate thoda ya nahi
      please reply .

  • @MahmudulHasan-er4np
    @MahmudulHasan-er4np 3 роки тому +23

    Already memorised the algo for exam but now that you shown the real life example, it's crystal clear. Thank you sir

  • @nikhilpandeytm1829
    @nikhilpandeytm1829 4 роки тому +35

    Great sir, Computer science has been easy to understand by you only thanks sir

  • @SmartTech-tv1tu
    @SmartTech-tv1tu 2 роки тому +106

    Best Teacher ever I have seen on UA-cam 👌Appreciation from Pakistan 🇵🇰

    • @toxic5630
      @toxic5630 Рік тому +30

      Bhai tum log q padh rahe ho
      😂🤣🤣

    • @Ravenyx-xv8sg
      @Ravenyx-xv8sg Рік тому +21

      @@toxic5630 haa yaar batao 🤣 last me to bam he phodna h

    • @mani_513
      @mani_513 Рік тому +22

      ​@@toxic5630 yar ap logon k algorithms k concept may be clear hon but humanity k bara bilkul zero ho

    • @pranavkamble10
      @pranavkamble10 Рік тому +7

      ​@@mani_513sahi kaha tune Bhai...👍

    • @PremRabade
      @PremRabade Рік тому +2

      This is Indian talent dude 😎🆒

  • @shwetaadurkar562
    @shwetaadurkar562 4 роки тому +6

    Great lecture sir...All the concepts related to this sorting technique (working,example,complexity) in one video and well explained..Thank you sir

  • @122_jyoti5
    @122_jyoti5 4 роки тому +12

    Sir thanku so much .your way of teaching awesome sir... Sir u r the key for all engineering students... I wish your channel will grow more and more.... Sir thanku once again.

    • @GateSmashers
      @GateSmashers  4 роки тому +6

      Thank you from the bottom of my ♥

  • @DevasheeshMishra
    @DevasheeshMishra 7 місяців тому +16

    Ultra legends watching in washroom on the day of exam

  • @rabicca8646
    @rabicca8646 3 роки тому +4

    Sir, your teaching style is so attractive, thank-you. Huge respect from PAKISTAN

  • @kalpanameena9854
    @kalpanameena9854 4 роки тому +3

    u are incredible ...one of best tutor on UA-cam

  • @safionweb
    @safionweb 4 роки тому +3

    Happy to see you making progress. Nice setup.

  • @CodeWithSanju30
    @CodeWithSanju30 4 роки тому +36

    The way u teaching is osm and example is also great dude❤️

  • @ISHA-n4p
    @ISHA-n4p Рік тому +1

    you are the best teacher in the world sir agar ap hmara college ma hota fr to top krna tha pka or attendence b puri hoti sir ap punjab university ma apply kro pls

  • @sayansahu7389
    @sayansahu7389 2 роки тому +4

    Such a good explanation💪🏻

  • @harshita1457
    @harshita1457 4 роки тому +1

    Teaching methodology to apki bahut achi h no doubt... But background 👌🏻👌🏻👌🏻👌🏻

  • @NAHEEDAABDULJABBARABDULJABBAR
    @NAHEEDAABDULJABBARABDULJABBAR 19 днів тому

    Great sir ap K lecture zabardast Hai sub clear ho jahta ... Watching from Balochistan

  • @AjayKumar-cq7mz
    @AjayKumar-cq7mz 10 місяців тому +1

    void insertionSort(int A[], int n) {
    int i, j, temp;
    for (i = 1; i < n; i++) {
    temp = A[i];
    for (j = i - 1; j >= 0; j--) {
    if (A[j] > temp) {
    A[j + 1] = A[j];
    A[j] = temp;
    } else {
    break;
    }
    }
    }
    }
    code in C of insertion sort algo

  • @mr.unknown6577
    @mr.unknown6577 4 роки тому +1

    And Most Important Your Teaching style is Amazing
    I watch Your videos and I Understand each and Everything about Topics

  • @Harpreetkaur-fd5fu
    @Harpreetkaur-fd5fu 4 роки тому

    Very nice sir
    Great explanation 👌👌👈

  • @gayathrib8610
    @gayathrib8610 4 роки тому +8

    Really sir , you explain all the topics very interesting and also very easily.
    Even though I don't know "Hindi" I can able to understand each and every word you say , that's crystal clear 😍
    Till now , I haven't know how to calculate the Time complexity. But now, I understood only because of you sir
    I hope this playlist on algorithms should be continued sir :-)

  • @ankitchaudhary6142
    @ankitchaudhary6142 4 роки тому +2

    working from home sir, million million thankyous for this great explanation.

  • @prarthnashishodia7930
    @prarthnashishodia7930 3 роки тому +1

    fantastic bhaiji :-)

  • @sagaradhikari8581
    @sagaradhikari8581 4 роки тому +1

    sir u are god for me , the way you explain each topic is way way better than others out there. love u a lot sir , keep making these videos . thank you

  • @smsadiofficial
    @smsadiofficial 2 роки тому +2

    Thank you Sir, it was very helpful

  • @swathyc9404
    @swathyc9404 4 роки тому +4

    Wow anna after long time I am seeing you and I'm keep on waiting for your classes.🙂

  • @ersarthaksethi
    @ersarthaksethi 4 роки тому

    att kraa dinda h eh bndaa kya padhatee ho yrrr too goood

  • @upsainiangaming2453
    @upsainiangaming2453 3 роки тому +2

    studying for up lecturer ,thanks for amazing lecture sir

  • @priyaroat8057
    @priyaroat8057 3 роки тому

    Really mja aa gya sir 👍👍

  • @HaniyaKhan-s4t
    @HaniyaKhan-s4t 15 днів тому

    Best channel for it+ cs students

  • @mdsanaullarain-o6z
    @mdsanaullarain-o6z 10 місяців тому

    one of the best teacher for data structure .....

  • @vandanabanny7550
    @vandanabanny7550 3 роки тому +1

    i am so clear with insertion sort, thank you for this valuable video

  • @shivanshgoyal310
    @shivanshgoyal310 4 роки тому +5

    Amazing sir this is my first video of your's 🥰🥰

  • @sunimachhetri3644
    @sunimachhetri3644 2 роки тому +2

    Real life jitu vaiya ..Thankyou so much

  • @Gurvinder7Singh
    @Gurvinder7Singh 3 роки тому +1

    Arrey Sir Sir Sir, Jo Line boli na apne, "Engineering Student to reh hi nahi skte iske bina" - Ek Number 😄😄 , To Be Honest, your Classes are Fun

  • @abdeali1301
    @abdeali1301 2 роки тому

    Great & Very Helpful Video,Thankyou sir.

  • @AnjaliSingh-yk9jv
    @AnjaliSingh-yk9jv 4 роки тому +1

    Amazing explanation.... And amazing teaching... Thanku..... I easily understood.....

  • @avantikakale5004
    @avantikakale5004 4 роки тому +3

    All subjects of CSE becomes very easy only because of you Sir . Superb explanation 👍👍

  • @muntahariaz4332
    @muntahariaz4332 2 роки тому +1

    Awesome 😎 I found my all study subjects in this channel 🥰😘

  • @MixInfo4554
    @MixInfo4554 2 роки тому

    The way of your teaching is of billions words.

  • @rupalijain2625
    @rupalijain2625 4 роки тому +5

    Keep going ... You will reach at the highest point

  • @JitendraSingh-qd7jk
    @JitendraSingh-qd7jk 2 роки тому +2

    I can see that this code snippet is borrowed from the book called "BIBLE OF ALGORITHMS" ;Introduction TO algo by Thomas. You're literally perfect if you've read that.

  • @souravbhagat9979
    @souravbhagat9979 4 роки тому +10

    Sir please vedios uplaod kijye aap UA-cam pr design and analysis of algorthms pr.

  • @rory04aditi
    @rory04aditi 3 роки тому +3

    Really liked the way you explained with the cards. Made it really easy to understand! Great Help! Thanks! You're better than most teachers! Keep it up! You've earned yourself a subscriber!

  • @scorpion-5
    @scorpion-5 4 роки тому

    much love and respect from pakistan apka way teaching boht acha hai easy hai bundle of thanks

  • @anushkamishra8257
    @anushkamishra8257 4 роки тому +3

    Amazing!

  • @videoeditor1994
    @videoeditor1994 3 роки тому

    Waooo nice sir thankyou

  • @mohitchouhan7679
    @mohitchouhan7679 9 місяців тому +1

    amazing and easy to understand

  • @serene6700
    @serene6700 4 роки тому

    Simply the most beneficial channel for me....

  • @CMOMKARSHELKECM
    @CMOMKARSHELKECM 2 роки тому

    VERY SHORT AND INFORMATIVE LECTURES . I AM FEELING COMPUTER SCIENCE EASY BECAUSE OF YOUR LECTURES THANKS SIR

  • @someonesoumya
    @someonesoumya 4 роки тому

    Your Explanation way is better than others.

  • @SinghHarmanat
    @SinghHarmanat 3 роки тому +4

    It always helps to write the output in the comments of your first traveral, then the program would run in the first go...
    public class InsertionSort {
    public static void main(String[] args) {
    int[] a = {77, 23, 54, 223, 101, 65, 283, 99, 300, 1};
    for (int j = 1; j < a.length; j++) {
    int newElement = a[j]; //23
    int i = j - 1; // 0
    while (i >= 0 && newElement < a[i]) {
    a[i + 1] = a[i]; // {77, 77, ...}
    i = i - 1; // i = -1
    }
    a[i+1] = newElement; // {23, 77, ...}
    }
    // printing the sorted array
    for (int i = 0; i < a.length; i++) {
    System.out.println(a[i]);
    }
    }
    }

  • @rehanamulla6302
    @rehanamulla6302 4 роки тому

    Very nice explanation

  • @kevaljivrajani5758
    @kevaljivrajani5758 2 роки тому

    Great one!

  • @khushbookumari6938
    @khushbookumari6938 4 роки тому +2

    As usual awesome class with you sir 😊

  • @salehakhatoon3452
    @salehakhatoon3452 2 роки тому

    Amazing 👍👍

  • @navikajaiswal4941
    @navikajaiswal4941 4 роки тому +1

    Great sir!

  • @shraddhajaiswal8412
    @shraddhajaiswal8412 3 роки тому

    You are great sir your teaching style superub👌👌

  • @anushkasrivastava8814
    @anushkasrivastava8814 3 роки тому +1

    You're great sir!!...very well explained...thank youu so much:)

  • @muhammadtalha6317
    @muhammadtalha6317 2 роки тому

    Tooo much great teaching too good

  • @faizivlogsofficial8678
    @faizivlogsofficial8678 3 роки тому +2

    Sirrrrr I really love your videos but bhttttt speeed me smjhaya ghooom gya sara kuch

  • @dhrubajotidas9265
    @dhrubajotidas9265 3 роки тому

    Nice explained

  • @raohassan6155
    @raohassan6155 Рік тому

    One of my most favorite teacher

  • @gurleenkaur5151
    @gurleenkaur5151 3 роки тому

    bohot badiya

  • @bibhutikumarjha7767
    @bibhutikumarjha7767 3 роки тому

    Sare doubt clear ho gya,Sir jee🙏🙏

  • @amanthakur6913
    @amanthakur6913 4 роки тому

    Really good explanation Sir🤗🙏

  • @bipulkumar8921
    @bipulkumar8921 3 роки тому

    Very usefull vidoo sir

  • @anshikasingh4289
    @anshikasingh4289 2 роки тому

    This video is very helpful for me because inthis video all points are covered about insertion sort.
    Thanks for this video😊

  • @amedkar_1_world
    @amedkar_1_world 2 роки тому

    Your way of teaching is excellent and awesome ☺☺

  • @wilson7846
    @wilson7846 4 роки тому +1

    easiest explanation ever😍😍😍😍😍😍😍😍😍

  • @muqadaszulfiqar4328
    @muqadaszulfiqar4328 Рік тому

    Excellent

  • @souravsinha18
    @souravsinha18 4 роки тому

    Great work sir

  • @aspiredifferent8085
    @aspiredifferent8085 3 дні тому

    Sir smiled for first time : 3:09

  • @abhirawat8649
    @abhirawat8649 4 роки тому

    Amazing way for your teaching😍

  • @MomtazBegum-dc3zm
    @MomtazBegum-dc3zm 2 роки тому

    Excellent 👍👍👍 sir

  • @grandadmiralthrawn9688
    @grandadmiralthrawn9688 3 роки тому +1

    Very short and efficient lectures . Thanks a lot sir

  • @nidhiraj9615
    @nidhiraj9615 4 роки тому

    Awesome explanation 😄

  • @skhojayfarahaman5867
    @skhojayfarahaman5867 3 роки тому +3

    Ur example is just awesome. You are my god sir❤️❤️❤️❤️❤️❤️❤️

  • @SHAHIDRAZA-do9xe
    @SHAHIDRAZA-do9xe 4 роки тому +1

    Sir You are a great teacher

  • @DivyanshiMishra-kp5pp
    @DivyanshiMishra-kp5pp 3 роки тому

    Amazing videos!

  • @drishtisharan1963
    @drishtisharan1963 4 роки тому

    was never able to understand the complexity but you made is so easy sir...thankyou so much!

  • @haleemaghayyur1500
    @haleemaghayyur1500 3 роки тому

    Outstanding Sir

  • @praveensinghrathore4542
    @praveensinghrathore4542 4 роки тому +1

    PERFECT, Thanks a lot sir

  • @TasteVenture22
    @TasteVenture22 2 роки тому +2

    Thank u so much sir 😊

  • @shahbazali1092
    @shahbazali1092 3 роки тому +1

    sir you are very helpful ,,i from pakistan

  • @nileshpatil5716
    @nileshpatil5716 7 місяців тому +4

    Legend was those who reading on exam day

  • @hafsakhadam3928
    @hafsakhadam3928 Рік тому +1

    Thank you so much 😊

  • @ayeshabajwa9075
    @ayeshabajwa9075 4 роки тому

    WAy of teaching is too good 😍

  • @InfographicASH
    @InfographicASH 2 роки тому

    thanx for teaching cards as well

  • @shalinimutyala2631
    @shalinimutyala2631 9 місяців тому

    Thank you very much sir, your videos are easy to understand and of great help.

  • @Nyukk11
    @Nyukk11 9 місяців тому +1

    TNX❤️

  • @bite091_jamee7
    @bite091_jamee7 2 роки тому

    Amazing

  • @mdsaadsabir9140
    @mdsaadsabir9140 6 місяців тому +2

    Legend watching it in computer lab 10 min before viva

  • @skilltolearn
    @skilltolearn 2 роки тому

    sir I am very thankful to you for giving very informative video

  • @rishankyadav-3916
    @rishankyadav-3916 4 роки тому

    Amazing bawa

  • @saweranadeem2040
    @saweranadeem2040 2 роки тому

    JAZAK ALLAH SIR

  • @riyabosmia
    @riyabosmia 3 роки тому

    Thank you for the video
    Sir code vale videos aur banaya karo.... achhe se samaj aata hai

  • @HaniyaKhan-s4t
    @HaniyaKhan-s4t 15 днів тому

    Well explained ❤

  • @dhruvilsolanki9887
    @dhruvilsolanki9887 2 роки тому

    mentor of all mentors

  • @pagalgaming7228
    @pagalgaming7228 7 місяців тому

    Sir I am from a biology background but after watching this video i think I can learn c easily thank you ❤