Selection Sort Algorithm - Theory + Code

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

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

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

    DSA + interview preparation playlist: th-cam.com/play/PL9gnSGHSqcnr_DxHsP7AW9ftq0AtAyYqJ.html

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

    A suggestion: While writing on your ipad it will be helpful if we are able to see the traces how you move your pencil on your screen. That really helps us to locate and navigate quickly of what you are pointing.

    • @RaviRavi-ne9xw
      @RaviRavi-ne9xw 26 วันที่ผ่านมา +1

      I faced same problem bro

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

    you've raised my expectations high after 4 hr long video, now 18 mins seems way too small. Your content is addictive bro, great work

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

      Thank you so much 😀

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

      @@KunalKushwaha is there any playlist available for DP, trees and graphs?

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

    This is most productive Monday ever. I complete my backlogs of DSA bootcamp feeling great

  • @abhishek-tf2db
    @abhishek-tf2db 3 ปีที่แล้ว +132

    You are doing a great job bro those who want to build their base strong or brush up for any product based interview they can easily go through all and get all these topics refereshed…..

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

      Thank you! I'll provide you the best content for free, my promise.

    • @VijayKumar-go6cr
      @VijayKumar-go6cr ปีที่แล้ว +4

      @@KunalKushwaha then why u left making videos on DSA like BST,Graphs???
      I completed more than half of your playlist but still thinks from where to study later on topics🥲🥺🥺

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

      ​@@VijayKumar-go6cr try striver

    • @VijayKumar-go6cr
      @VijayKumar-go6cr ปีที่แล้ว +1

      @@sarthaksingh9100 I never code again but can't study from striver 😂

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

      ​@@VijayKumar-go6cr why ?

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

    If someone is truly passionate about learning in deep the edge cases and all of the stuff in sorting algos then Kunal's sir explanation is best..

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

    I had tried to understand sorting techniques. I always used to forget the code and sorting strategies. Kunal your style of witing code is just like you are painting . Its so clean and modular. Thanks man for such wonderful stuff. I amfollowing your 41 video bootcamp religiously and trust me I never felt so much confident in these concepts.

  • @Yash-dr7pm
    @Yash-dr7pm 3 ปีที่แล้ว +27

    Till today I was confused with selection sort algo like how it works, many explained it in different complex ways, but from today that confusion is gone completely forever! , Ekdum satik!!🤩,
    Thank you Kunal bhaiya! , made my day!!😁

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

      You're most welcome

    • @MahnoorSarfraz-y9k
      @MahnoorSarfraz-y9k 6 หลายเดือนก่อน

      @@KunalKushwaha Graph is a complex topic please make video on graphs plzzzzzz and its interview questions

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

    DSA is never boring with you! Amazing lectures.

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

    Just finished the Bubble sort and the next is here already 🙌

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

    I was on the bus today and completed watching this video before reaching college, thank you love all your videos♥️🤝

  • @md.arslan9789
    @md.arslan9789 5 หลายเดือนก่อน

    This is hands-down the best explanation of selection sort, I'm sure now I'm not gonna forget the logic ever!

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

    'm a year 2 student studying CS in Hong Kong. I'm currently enrolled in my Data Structure course and we are in Week 2 now. My uni course hasn't been amazing because professors never put enough effort into teaching. I have been following your DSA Playlist since the beginning of August. The past month has been extraordinarily amazing and I'd say I owe you one for explaining "EVERY" tiny detail of JAVA which is the primary focus of Year 2 and explaining why EVERYTHING happens, which is extremely crucial. I will absolutely rely on your playlist for this semester for my DS Course.

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

    Following this course from the very starting, watched all the videos till now and I must say all are very good, very understandable.
    Thank you

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

    The way you teach it's really seeping deep into my brain

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

    Hamesha Ratta mar ke Yad karte the aur bhul jate the aj samjh aa gya hai to ab nahi bhulega. kudos to you bro.

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

    Kunal, this is perfect. Content and delivery is superlative and very crisp and fundamentally very well covered. Thank you and you are a champion.

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

    Like and comment even before watching, that's the kind of teacher he has been for me.. ❤

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

    Great course to build your basics very strong. In-depth. People explain all these sorting algos in one video and you have made separate videos for every algos. Waiting for your further videos to comes like on trees, graphs and dp etc.😊

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

    This is hands down the best course for someone trying to switch into FAANG level companies or even for entry level freshers. Bingo Kunal bro

  • @jaya.1610
    @jaya.1610 ปีที่แล้ว

    your are the KING of programming

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

    After 4 hour long video with superb detail, it is becoming very easy to digest videos less than 2 hours from you. Amazing work.

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

    Haha while watching the video an ad popped up an academy has more grads at Amazon than all IIT combined this was the last thing left who teaches DSA at 3.0L and places you directly at Netflix Facebook 😂😎🙏

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

      Unfortunately I can't control ads

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

      @@KunalKushwaha haaha I know you are with us that's enough

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

      @@KunalKushwaha 😂

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

    You explain everything really nicely. Now selection sort is crystal clear in my mind. Thanks for the amazing content

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

    Listened once and tried to code, it worked without errors, Great explanation Kunal.

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

    first time I understood selection short in my life from your video

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

    Initially thats too much for me to watch 1 hr video now i can watch how much ever long coz ur playlist is jst awesome and thank you so much for helping out i literally pray for 1M soon 🎉

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

    Learning can be fun if teacher knows how to teach. Thanks kunal

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

    Aisa Mauka Or Kaha Milega DSA sikhne ka..
    @Kunal Kushwaha @Commclassroom @Discord Community Pillars of DSA... Love You Kunal 3000

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

    You made these sorting algos seem so easy

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

    The way you teach logic was so good

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

    Thank you for helping us with this wonderful playlist

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

    best ds algo course ever

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

    Your explanation is really excellent.

  • @k.a.8399
    @k.a.8399 3 หลายเดือนก่อน

    While following your playlists I noticed that u do not follow the conventional code writing rather have a different new approach to solution . The logic behind the last variable was very nice .

  • @aksharasharma04
    @aksharasharma04 8 หลายเดือนก่อน +1

    It's understandable that you're puzzled about why someone is putting in so much effort and delivering excellent content for free,but these videos are on this platform from soo long , and even after two years i am still seeing a significant difference in the views, likes, and subscribers compared to other creators.
    You all are watching the content, you understand it, but you're not hitting the like or subscribe button, even after receiving the best quality content for free.
    I must say, he deserves more recognition than all the other TH-camrs who provide content through documentation and not by putting this much efforts as Kunal is putting for all of us .
    This isn't meant as hate towards any creator, but rather as appreciation towards Kunal because no one can match him in terms of free content.
    Much love !! 🫶🏻

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

    Thank you. The video is made every concept lucid and clear

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

    your teaching style is so good;

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

    EVERYTHING IS CLEARED!! SUCH A NICE EXPERIENCE LEARNING WITH YOU

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

    this was so good explanation bhaiya . it really helped me understand selection sort very well . thank you so much bhaiya

  • @ananyasingh5795
    @ananyasingh5795 5 หลายเดือนก่อน +2

    Why did u stop making the videos , there are so many topics uncovered...We are depended on you Kunal !

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

    Hello bhaiya, amazing lecture bhaiya, Bhaiya please complete the Graph and DP also in this series.🙏🙏🙏

  • @kraw-vo4oy
    @kraw-vo4oy 9 หลายเดือนก่อน

    amazing explanation. Clear and upto the point.

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

    Bhai on fire 🔥🔥
    Thank you bhai

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

    Video is awesome and i am ready to learn more and more with you sir 🤗🤗

  • @coding.alphass
    @coding.alphass 2 หลายเดือนก่อน

    Selection Sort can also be implemented like this :
    import java.util.*;
    class HelloWorld {
    public static void main(String[] args) {
    int[] a={4,1,3,5,2};
    for(int i=0;i

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

    brother there is god's grace on you,
    lots of good wishes and blessings to you for doing such a miraculous effort in sharing these knowledge with everyone.
    There are millions blessings and good wishes coming on your way from thousands of students.! :) keep sharing brother.

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

    Thank you sir for clearing this concept. Amazing content

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

    Thank you for your content. We'll be sure to make the most of it :)

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

    Mazaa hi aa gaya , Thank You😁😁

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

    Great Job as always Kunal!!! Thanks again and always.

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

    Namaste Kunal great lecture thank you for this type of content

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

    Great buddy now rusted mind is now slowly slowly unrusting.

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

    Thanks kunal for amazing content

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

    Your explanation is really very good. 🎉👏👏🎉Thanku so much🌻

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

    Helpful & Enjoying also

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

    Great explanation kunal sir

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

    Very Nice Explanation @kunal. Much Appreciated

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

    great playlist i had ever seen

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

    You're doing god's work. ☺

  • @Content_creater_entertainment
    @Content_creater_entertainment 4 หลายเดือนก่อน +1

    Great vedio

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

    Mast re kunal bhaiya

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

    Amazing that was a fast upload! 🤩

  • @GauravSharma-bl7nu
    @GauravSharma-bl7nu 2 ปีที่แล้ว +1

    top class lecture

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

    TYSM , LEARNING SLOWLY

  • @prajwalm.s7976
    @prajwalm.s7976 ปีที่แล้ว

    Emjoyed it!

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

    Thankyou Bhaiya foe such an amazing video .

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

    Thanks man for great lecture❤

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

    Good Work

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

    Wow, i can't believe it actually took me an hour to finish an 18 min video. :p But i'm sure i'm getting better with every question i solve :D

  • @RR-ts9qe
    @RR-ts9qe 2 ปีที่แล้ว +1

    I have a more optimised solution:
    for (int i = 0; i < arr.length; i++) {
    int max = findLargest(arr,arr.length-1-i);
    if(max!=arr.length-1-i){
    swap(arr,max,arr.length-1-i);
    }
    }
    here I used an "if " condition where it skips the self-swap if it's already at correct position
    (I don't think it improves the time complexity tho)

  • @NOLOVEHari-cb5gh
    @NOLOVEHari-cb5gh หลายเดือนก่อน

    Thank you KK

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

    enjoyed the video it was svery good keep it up kunal bhai

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

    best tutor ever seen!!

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

    Thank you so much sir ❤❤❤❤❤❤❤❤❤

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

    I didn't know selection sort was this easy.

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

    Thanks bhaiya:)

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

    Completed.👍

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

    Thank you.

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

    thank you sir,

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

    great as always! like share comment, thanks!

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

    Indeed enthralling teaching 😍

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

    Video 18 Completed!

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

    thank you so much

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

    Thank You !

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

    great video bro, thank you so much!!!

  • @RS-zh1vc
    @RS-zh1vc 2 ปีที่แล้ว

    Thank you 🙏

  • @adityabedi266
    @adityabedi266 4 วันที่ผ่านมา

    Thanks sir

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

    your videos are amazing, I even feel like I am in a classroom lmao keep the good work man

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

    Loved it

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

    Tnx❤

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

    Hats off bhai for your hardwork

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

    Thanks!

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

    Please post video regularly

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

    Selection sort can be implemented as stable OR unstable sorting algo.

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

    well explained

  • @Aditya-id1xl
    @Aditya-id1xl 7 หลายเดือนก่อน +1

    I am preparing for the Data Analyst role , I had confusion between which language should I learn for DSA java or python ,cuz there is time constriant also

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

    Dude, I want to contribute in any meaningful way to this channel,
    Don't want to consume the content for free

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

      Email me at kunal@commclassroom.org

  • @JaswinderSingh-kj2fj
    @JaswinderSingh-kj2fj 2 ปีที่แล้ว

    Quality content 👍👍👍

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

    amazing video