Sorting - Part 1 | Selection Sort, Bubble Sort, Insertion Sort | Strivers A2Z DSA Course

  Рет қаралды 797,735

take U forward

take U forward

Күн бұрын

Пікірлер: 1 400
@takeUforward
@takeUforward 2 жыл бұрын
Book a FREE career counseling session with Learnbay: bit.ly/3km2s6W Let's march ahead, and create an unmatchable DSA course! ❤ Can someone please add timestamps, I will add them post-it.
@sweetyjain8204
@sweetyjain8204 2 жыл бұрын
Hey @striver @take U forward , it's a humble request can u, please complete this series soon as the placement season is coming soon....🙏
@Vikash-zq7vx
@Vikash-zq7vx 2 жыл бұрын
Hey Striver please complete the series.
@mgfreefirelover4471
@mgfreefirelover4471 2 жыл бұрын
@takeUforward Hey! Can you complete Binary search Section more quickly
@aniltandivitb4482
@aniltandivitb4482 Жыл бұрын
Bhaiya , if we solve a question and if need to sort the array then which algo we would to implement
@webtestingui7187
@webtestingui7187 Жыл бұрын
Kaha thay aap,maine itna YT me search kia but aapka channel suggest nahi huwa until mera ek dost ne nahi bola hota Maira DSA teacher ne jo topic clear nahi karwa pa a aap wo kar di a Thank you
@msdarshankirthic
@msdarshankirthic 2 жыл бұрын
Selection Sort TC -> worst - O(N^2) best - O(N^2) 2:45 - Selection Sort 6:50 - pseudo code / implementation for selection sort 14:28 - C++ code for selection sort Bubble Sort TC -> worst - O(N^2) best - O(N) 17:41 - Bubble Sort 22:00 - pseudo code / implementation for bubble sort 25:52 - C++ code for bubble sort Insertion Sort TC -> worst - O(N^2) best - O(N) 31:40 - Insertion Sort 36:55 - pseudo code / implementation for insertion sort 38:52 - C++ code for insertion sort
@afzalmd23
@afzalmd23 Жыл бұрын
Thinking about your notes📝 😮😮
@chhavigoel7030
@chhavigoel7030 Жыл бұрын
So many videos on Sorting on the internet yet this proves to be the BEST. Thank you so much.
@saurabh8260
@saurabh8260 2 жыл бұрын
A lot of problems are going on in my life right now. But still I'm showing up everyday to learn something new in dsa and to solve questions. Problems will come and problems will go but I should continue my hustle. All of our struggles will pay off one day.
@dhruvrajsinhgohil6715
@dhruvrajsinhgohil6715 2 жыл бұрын
Hope is the most precious thing do not lost it
@darshanakv4946
@darshanakv4946 10 ай бұрын
Beautiful message that I saw today!
@pulkit-rastogi97
@pulkit-rastogi97 9 ай бұрын
This motivate me, I am going through some similar situation
@SauravSingh-xm6nn
@SauravSingh-xm6nn 8 ай бұрын
@@pulkit-rastogi97 don't lose your hope , just keep giving your best so that you won't regret, in fact if you honestly give your best you can , you are likely to succeed !
@vaibhavagarwal602
@vaibhavagarwal602 8 ай бұрын
Same man, i was struggling to get up from bed the entire day. But finally at 11pm i decided i will atlest spend the last hout of my day working towards my financial independece
@ravenin9612
@ravenin9612 4 ай бұрын
I first watched this video and i understood this partially, its fascinating how a few lines of code can be so confusing. Maybe thats why dsa is still considered to be very hard. I finally understood this concept after writing the code in paper and analyzing each iteration and what happens after the same. If anyone dont understand the topic, just do the same and you will understand it.
@madrauchia1913
@madrauchia1913 26 күн бұрын
Bro I didn't understand why striver put recursion and hashing in basic section. Pls reply I am unable to understand
@vakitirahul8707
@vakitirahul8707 12 күн бұрын
@@madrauchia1913 because hashing is used in solving arrays
@aydasu
@aydasu 2 жыл бұрын
Striver, you are a gift to us all! thanks so much!
@charlesbabbage6786
@charlesbabbage6786 11 ай бұрын
What an AMAZING teacher!!!
@nandhakrishna2330
@nandhakrishna2330 Жыл бұрын
The amount of effort you put in these videos is truly amazing. 🙏
@hypernova5159
@hypernova5159 Жыл бұрын
The amount of effort you put in these videos is truly amazing. Thanks a lot 🙏
@shubhamagarwal1434
@shubhamagarwal1434 6 ай бұрын
#Free Education For All...... # Bhishma Pitamah of DSA...You could have earned in lacs by putting it as paid couses on udamey or any other elaerning portals, but you decided to make it free...it requires a greate sacrifice and a feeling of giving back to community, there might be very few peope in world who does this...."विद्या का दान ही सर्वोत्तम दान होता है" Hats Off to you man, Salute from 10+ yrs exp guy from BLR, India.........
@sukhpreetsingh5200
@sukhpreetsingh5200 2 жыл бұрын
😅😅As usual awesome!!
@Goswami_1000
@Goswami_1000 2 күн бұрын
I Start my dsa journey from today again , And i come here after 6-7 month again to telling you all guys that i completed my journey and placed in a good company . All the best to everyone .
@mistttttyyy
@mistttttyyy Күн бұрын
Even meee btw congratulations in advance😊🎀
@acroshubham
@acroshubham 10 ай бұрын
Stirver-Forever, Just striving to become the best version of myself. All thanks to raj vikrmaditya bhaiya. You're the best hope for students like us, belonged from tier-3 college, where there is no hope in hell to get a sde job, but their is this man standing with a freakin Sun the light the path for use. I don't know how I will thank you but one day I believe all my hard work will pay off when I will meet you and telling you my story of life, how I made zero to Prodigy. Till I didn't hit it, byy sir I am going back to hustle....
@Sreelekha-z9
@Sreelekha-z9 Ай бұрын
there is no YT channel that teaches DSA Better than you. Thank you sooooo muchhhh. Even a beginner can understand very easily
@amareshghosh3502
@amareshghosh3502 Жыл бұрын
khub sundar, osadharon🙂
@28_g_pawanvinayakawasthi23
@28_g_pawanvinayakawasthi23 Жыл бұрын
Hi Striver @takeUforward , in the insertion sort ,the outer loop i.e. the loop with i should start with i=1 instead of i=0 because the j takes the value of i and in the while loop it says j should be greater than 0 so it will always stand false for the first iteration ( j=i=0) and moreover we don't need to check the correct order of single element . Please correct me if i am wrong because i am just saying what I understood .
@ShubhraneelChakraborty-cj8zm
@ShubhraneelChakraborty-cj8zm Жыл бұрын
Yeah you are right I believe. When I saw the outer loop, I was thinking the same thing and when I run the code, it prints the same output as with i=0, just as I thought it would be during the dry run.
@raimasoni3013
@raimasoni3013 2 жыл бұрын
2:45 Selection Sort 17:41 Bubble Sort 31:40 Insertion Sort 😊
@takeUforward
@takeUforward 2 жыл бұрын
Thank you
@bhuvangowda4842
@bhuvangowda4842 5 ай бұрын
You make many people's life easier by teaching and making everyone understand so easily
@omgaikwad5962
@omgaikwad5962 2 жыл бұрын
HI Striver, One request please provide the videos for upcoming topics asap and Big thank for providing such an amazing series.
@zubairmirza-j3h
@zubairmirza-j3h 5 ай бұрын
BEST DSA TEACHER I HAVE EVER SEEN YOU ARE JUST AMAZING !!!
@Manishgupta200
@Manishgupta200 2 жыл бұрын
Thankyou Striver. It's really an easy to understand. I also learnt to find Time Complaxity from every code by myself after seeing this video. Please make video on other sorting methods. ❤
@rishikeshg8926
@rishikeshg8926 Жыл бұрын
Understood Thanks for this video bhai!
@milindjarsaniya
@milindjarsaniya Жыл бұрын
PERFECTLY UNDERSTOOD! ❤
@JazzSparrow0321
@JazzSparrow0321 11 ай бұрын
I find this is best DSA video i have ever seen on youtube. Thabak you Mr. TUF for this informative session.
@sumitvishwkarma6907
@sumitvishwkarma6907 2 жыл бұрын
This is going to be one of the best series of all time, thankyou so much raj bhaiya, just a small request can you please upload new videos asap, btw thankyou again ❤
@reddotcheese
@reddotcheese Жыл бұрын
It's easiest explanation I have seen. Appreciate the effort that went.
@cinime
@cinime 2 жыл бұрын
Understood! Amazing explanation as always, thank you very much for your continuous effort for making the video!!
@universal-1903
@universal-1903 7 ай бұрын
bro in insertion ,why does i has starting value of 0 ,shouldnt it be 1 as single element would be sorted anyways
@sarthaksharma9322
@sarthaksharma9322 7 ай бұрын
Understood! Thanks Striver for all this knowledge you are providing for free!
@animexworld6614
@animexworld6614 2 жыл бұрын
Hey striver , it's a humble request can u, please complete this series soon as the placement season is coming soon....🙏
@bishalkundu7592
@bishalkundu7592 2 жыл бұрын
Yes striver 😭 plzzz Want to learn the whole series just from u. Already watched DP and Graph and Trees playlist from ur channel. Plzz striver try to complete this series as soon as possible 😭
@harshavardhan184
@harshavardhan184 2 жыл бұрын
Yes please 🥺🥺🥺
@venomhighs1937
@venomhighs1937 2 жыл бұрын
brother once striver reaches to Poland he will be regular in posting videos !!
@yikes3807
@yikes3807 2 жыл бұрын
@@bishalkundu7592 u completed DP graph trees and you are waiting for basic topics?
@bishalkundu7592
@bishalkundu7592 2 жыл бұрын
@@yikes3807 Not basic but ya heaps Sliding windows stacks Queues Binary Search. Waiting for this
@deepaksingh-mu5th
@deepaksingh-mu5th 5 күн бұрын
You are the best tutor for dsa .
@Raj10185
@Raj10185 2 жыл бұрын
one suggession for insertion sort why we run outerloop from i = 0 we should start directly from i = 1 till iarr[j]) { int temp = arr[j]; arr[j]=arr[j-1]; arr[j-1]=temp; j--; }
@AryanRishi-vk6et
@AryanRishi-vk6et 8 ай бұрын
it wouldn't impact anything if the outer loop is running from 0 to n-1 then when i = j = 0 it will no go into the while loop and move on to next iteration of i
@dhruvverma1001
@dhruvverma1001 7 ай бұрын
I want to understand how does is not give index out of bound error by accessing -1, or it does short curcuit
@coder-2026
@coder-2026 4 ай бұрын
@@dhruvverma1001 j>0, it will start forom j=1. for j=1 , the comparison will be between arr[0] and arr[1]
@yashvardhansingh5341
@yashvardhansingh5341 10 ай бұрын
For bubble sort striver you are using i>=1 in outer loop in the pseudo code but while using the code editor you are using i>=0.
@ankitpal8044
@ankitpal8044 7 ай бұрын
Same doubt??
@nirbhaybhardwaj4330
@nirbhaybhardwaj4330 7 ай бұрын
there is no need of going till i>=0 . but if you go , this is also right .....i=0 is automatically got minimum number when we are sorting
@WebhubPlays
@WebhubPlays Ай бұрын
Editor one is correct
@surajgoraicse
@surajgoraicse Жыл бұрын
Finally I found the best DSA course on KZbin. ❤The way you explain concept is awesome. ❤❤ There was not a single second when I felt bored . Thankyou very much for your effort. ❤❤ ❤❤
@shivamsingh-we7ek
@shivamsingh-we7ek Жыл бұрын
please complete this series soon because only 3,4 months are left for placement season its a humble request
@Mebutdifferent
@Mebutdifferent 3 ай бұрын
how it went your placements?
@shivamsingh-we7ek
@shivamsingh-we7ek 3 ай бұрын
@@Mebutdifferent got decent offer
@RISWANAHAMED.M
@RISWANAHAMED.M 3 ай бұрын
can u share anything about your intrew prepariation as i have my placements within 6 months ? if i follow striver is it enough for dsa ?
@dhruvdonsahu9972
@dhruvdonsahu9972 3 ай бұрын
@@shivamsingh-we7ek congratulations
@madrauchia1913
@madrauchia1913 26 күн бұрын
Bro does his a2z help like I am stuck why he had added Recursion and hashing in basic section I can't understand
@ArvindSingh-wj7vy
@ArvindSingh-wj7vy Жыл бұрын
Absolutely understood Stiver!💌
@swarupsaha9064
@swarupsaha9064 Жыл бұрын
Hi Striver, At the Section of Selection Sort. I believe there might be a bit misunderstanding on calculating the Time complexity part: If we are given n elements, then in the first pass, it will do n-1 comparisons; in the second pass, it will do n-2; in the third pass, it will do n-3 and so on. Thus, the total number of comparisons can be found by; - (n-1) + (n-2) + (n-3) + ..... + 1 So i believe it should be : n(n -1)/ 2 At the end the TC is O(n^2), but i thought this should be the approach.
@sdfsdf-f1j
@sdfsdf-f1j Жыл бұрын
man you really dont know any maths , just open the bracket n2-n by 2 remove the constans and less imp terms and it boils down to n2 . ....
@Badmashiontopsystem
@Badmashiontopsystem 3 ай бұрын
@@sdfsdf-f1j when you took the clickbait seriously - "For programming you doesn't need maths"
@BoraSaiVenkataPraveenKumar
@BoraSaiVenkataPraveenKumar 2 ай бұрын
understood. very nice explanation that made me write the code even before you completed writing the code just by listening to the logic you taught
@valiz2628
@valiz2628 Жыл бұрын
its 2:20am at 10 am i have exam,so jai shree ram,aur jai baba raj
@Ankit-mg3ge
@Ankit-mg3ge 7 ай бұрын
College which year ??
@cocacola37281
@cocacola37281 6 ай бұрын
Kasa gya?😂😂
@valiz2628
@valiz2628 6 ай бұрын
@@Ankit-mg3ge 3rd
@valiz2628
@valiz2628 6 ай бұрын
@@cocacola37281 got an A grade
@BHUVANEESHGREWAL
@BHUVANEESHGREWAL Ай бұрын
Saaaamee lessgoooo 🎉🥳😂🥲🤣
@deepak8720
@deepak8720 Жыл бұрын
Understood. Thanks for your commitment. That in itself is amazing motivation to keep going.
@AyushKumar-bc3mf
@AyushKumar-bc3mf 10 күн бұрын
Understand everything very clearly❤❤😊
@anishchhabra6085
@anishchhabra6085 Жыл бұрын
Understood, great lecture.
@curs3m4rk
@curs3m4rk 11 ай бұрын
This is a very good explanation. With help of explanation itself I'm able to code and did the sorting. Really appreciate the efforts.
@prayushgiri6515
@prayushgiri6515 Жыл бұрын
understood!!! Thanks Striver bhaiya
@shubhivishwakarma9331
@shubhivishwakarma9331 Жыл бұрын
you are amazing all the sorting you taught looks very easy after watching your vdo
@066-roshankumar6
@066-roshankumar6 Жыл бұрын
Best Sorting video until Now THanks bhaiya...
@umeshpawar7003
@umeshpawar7003 5 ай бұрын
on point, easy to understand, depth in approach. overall great . thanks striver for your efforts
@anubhavray5987
@anubhavray5987 15 күн бұрын
Thank you. Made my concepts crystal clear.
@MitaliMaurya-k4x
@MitaliMaurya-k4x 7 ай бұрын
Thankyou for your efforts! Dsa scares me, but you are making it easy for me
@itsmehere8285
@itsmehere8285 3 ай бұрын
Omggg!! This is soooo good!! Really hope I get DSA finally with following your videos
@hareshnayak7302
@hareshnayak7302 10 ай бұрын
Understood,thanks striver for this amazing video.
@UserUser-tn8tv
@UserUser-tn8tv Жыл бұрын
I just wanna say Thank U you are a big brother figure for me...
@GenetDesta-wz8iq
@GenetDesta-wz8iq 4 ай бұрын
You are so smart and thank you so much, i learned in depth regarding the sorting algorithm from your lesson .
@kirankumari-xx1rs
@kirankumari-xx1rs Жыл бұрын
Thank you Striver, I am in my first year but I am learning a lot from you.
@rizwanshaikh4024
@rizwanshaikh4024 11 ай бұрын
Understood, thanks STRIVER
@sahitid5570
@sahitid5570 6 ай бұрын
Such a detailed and perfect explanation. Thanks a lot Striver!! Understood the concept really well.
@yash_nigam182
@yash_nigam182 6 ай бұрын
Really Thanks to You Sir , Got all my PRoblems Cleared in this Video
@anjaliarya6534
@anjaliarya6534 6 ай бұрын
understood. You explain in very lucid language
@muhammadzubair957
@muhammadzubair957 Жыл бұрын
Good Explanation in the Sorting algorithm. Thanks a Lot❤❤ Strivers
@Delulu-Toons
@Delulu-Toons Жыл бұрын
understood it way better than anywhere else
@tvnalkkmgaargyreddy9548
@tvnalkkmgaargyreddy9548 7 ай бұрын
Explanation is amazing 😍
@a_maxed_out_handle_of_30_chars
@a_maxed_out_handle_of_30_chars Жыл бұрын
simple and to the point, thank you :)
@VishalYadav-gk1kg
@VishalYadav-gk1kg Жыл бұрын
Very Nice explanation sir, Thank you!
@sangariprem2554
@sangariprem2554 2 ай бұрын
Thank you @Striver 😊 Understood
@divyanshurai3797
@divyanshurai3797 25 күн бұрын
Best way to explain sorting bro like real
@AbhishekChaurasiya-op6pq
@AbhishekChaurasiya-op6pq 8 ай бұрын
Understood everything and it became crystal clear topic
@SatyaNadella-e7q
@SatyaNadella-e7q 8 ай бұрын
You are the best man... I donot know where this energy come from...
@davidmultani1
@davidmultani1 20 күн бұрын
amazing videos bro. your videos are very helpful. please keep on making these kind of amazing videos 😊👍
@diwakarchaurasiya4515
@diwakarchaurasiya4515 18 күн бұрын
Thanks sir for making it easy 🙏
@Riya_K-124
@Riya_K-124 Жыл бұрын
Great explanation......clear cut explanation👏👏👏
@SupriyoPurkait-r8d
@SupriyoPurkait-r8d Жыл бұрын
your explanation is just Awesome. UNDERSTOOD
@chiranjeebpanda8926
@chiranjeebpanda8926 8 ай бұрын
Understood. Best explanations for every sorting algo :)
@saravananm588
@saravananm588 6 ай бұрын
you're the best man🔥
@priyanshishukla8334
@priyanshishukla8334 4 ай бұрын
really the best course lots of love sir
@anujsamdariya984
@anujsamdariya984 8 ай бұрын
Best Explaination of Insertion Sort!!!
@rohitkuttum3102
@rohitkuttum3102 Ай бұрын
hi striver understood this concept perfectly !!!!
@aryankumararya1674
@aryankumararya1674 6 ай бұрын
Thank you sir for your dedication and efforts.❤
@devanshimishra9786
@devanshimishra9786 7 ай бұрын
Thanks for this lecture finally understood those sorting techniques
@kingbadshah452
@kingbadshah452 Жыл бұрын
thanks for this lecture ,,,, understood everything
@everythingabout3479
@everythingabout3479 7 ай бұрын
Thank you so much striver. Your each and every video is such nice 👍
@Mr.Manoj1
@Mr.Manoj1 4 ай бұрын
Appreciate the efforts! Very clear explanation!
@maltaparikh4255
@maltaparikh4255 3 ай бұрын
Amazing lecture😊🎉Thank u so much 💖
@suryaprakashiitbhu191
@suryaprakashiitbhu191 Жыл бұрын
Striver, Your content is truly outstanding and incredibly informative! Always thank you for your relentless hard work and consistently delivering the best content.❤
@dhivyaviswanathan7604
@dhivyaviswanathan7604 3 ай бұрын
great explanation ever..kudos🙂
@phisicist7518
@phisicist7518 3 ай бұрын
Understood. (doing this while pursuing BTech in Petroleum Engineering just to keep my non core solid. helping out a ton. hope to complete the whole sheet)
@mohammedharoon1167
@mohammedharoon1167 6 ай бұрын
Amazing course 🤩
@m.swetha7340
@m.swetha7340 8 ай бұрын
Understood sir❤ plz make more videos it's really helpful sir🙏
@jackfrost01
@jackfrost01 2 күн бұрын
Great Explaination
@soniakakas887
@soniakakas887 Ай бұрын
loved learning from you
@Iqbal00123
@Iqbal00123 Жыл бұрын
Take love from Bangladesh.Understood everything
@shashamnk2525
@shashamnk2525 Жыл бұрын
folks that was 5:29 AM in striver's clock , please hit the like button for the efforts he makes for us , forever grateful.
@shubha_jagadeesh
@shubha_jagadeesh 5 ай бұрын
well understood 💞👍 keep going ❤
@imcuber7542
@imcuber7542 Жыл бұрын
excellent teaching
@Abiram77
@Abiram77 Ай бұрын
understood every concept bro, thank you
@waqas3051
@waqas3051 11 ай бұрын
Understood, Very well explained.
@nileshchavan_23
@nileshchavan_23 Жыл бұрын
Love you bhai❤
@iDinesh04
@iDinesh04 11 ай бұрын
Understood and thanks
@vijay_liftzz
@vijay_liftzz Ай бұрын
best video till date
@vedanshpandey3738
@vedanshpandey3738 Жыл бұрын
Understood thanks bhagwaan♥♥
@NIKHILKUMAR-zg3us
@NIKHILKUMAR-zg3us Жыл бұрын
understood Thank you so much for giving this fabulous course.
@Jaishreeram-ly2jm
@Jaishreeram-ly2jm 2 ай бұрын
Understood ❤
LeetCode was HARD until I Learned these 15 Patterns
13:00
Ashish Pratap Singh
Рет қаралды 803 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Quick Sort For Beginners | Strivers A2Z DSA Course
35:17
take U forward
Рет қаралды 529 М.
BRAIN ROT | Why You Are Losing Control Of Your Brain?
17:40
Aevy TV
Рет қаралды 1,3 МЛН
How to Remember Everything You Read
26:12
Justin Sung
Рет қаралды 3,9 МЛН
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 300 М.
3 Types of Algorithms Every Programmer Needs to Know
13:12
ForrestKnight
Рет қаралды 528 М.
Time and Space Complexity - Strivers A2Z DSA Course
35:16
take U forward
Рет қаралды 793 М.
one year of studying (it was a mistake)
12:51
Jeffrey Codes
Рет қаралды 327 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН