Basic Maths for DSA | Euclidean Algorithm | Strivers A2Z DSA Course

Поделиться
HTML-код
  • Опубликовано: 3 авг 2024
  • Full Course: takeuforward.org/strivers-a2z...
    There is a slight mistake on the logic of Armstrong, it will be 1634 = (1^4 + 6^4 + 3^4 + 4^4), basically digits raised to the power count of digits, so sum = sum + pow(ld, cntDigits) will be the change, where the cntDigits is the number of digits.
    Notes:
    Count Digits: takeuforward.org/data-structu...
    Reverse a Number: takeuforward.org/c-programs/r...
    Check Palindrome: takeuforward.org/data-structu...
    Gcd or HCF: takeuforward.org/data-structu...
    Armstrong Number: takeuforward.org/maths/check-...
    Print all Divisors: takeuforward.org/data-structu...
    Check for prime: takeuforward.org/data-structu...
    Submit the problems here:
    Count Digits: bit.ly/3X17nIr
    Reverse Number: bit.ly/3vCeBXS
    Palindrome: bit.ly/3vylgCi
    Armstrong: bit.ly/3vBfkbD
    Print Divisors: bit.ly/3vzQ7yr
    Check Prime: bit.ly/3ZdiWOO
    HCF/GCD: bit.ly/3GB4Mj8
    In case you are thinking to buy courses, please check below:
    Link to get 20% additional Discount at Coding Ninjas: bit.ly/3wE5aHx
    You can follow me across social media, all my handles are below:
    Linkedin/Instagram/Telegram: linktr.ee/takeUforward

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

  • @takeUforward
    @takeUforward  Год назад +345

    Let's march ahead, and create an unmatchable DSA course! ❤
    There is a slight mistake on the logic of Armstrong, it will be 1634 = (1^4 + 6^4 + 3^4 + 4^4), basically digits raised to the power count of digits, so sum = sum + pow(ld, cntDigits) will be the change, where the cntDigits is the number of digits.
    Do consider to give us a like, and a subscribe, means a world to us..

    • @himanshusharma3382
      @himanshusharma3382 Год назад +5

      Bhaiya i have good foundation in java can I do these sheet in java lang

    • @brajeshmohanty2558
      @brajeshmohanty2558 Год назад +3

      @@himanshusharma3382 Han bhai mil ke try karte hai main bhi java Bala hi hun par bhaiya ne bola concept toh same hai par kahi kahi toda muskil hota hai cause c++ ke kuch function java mai nahi hai par toda manage karna padega

    • @arunn121
      @arunn121 Год назад +1

      @@brajeshmohanty2558 yes bro... functions and Collection frameworks implementation syntax vgera b thora different rehta hai. .. ek group discord telegram ya kuch b bnalo Java k liye best rhega..discussion help vgera and sath m A2Z sheet solve krenge toh consistency b bni rhegi..

    • @brajeshmohanty2558
      @brajeshmohanty2558 Год назад

      @@arunn121 dekh bro mid Jan se toh mera end sem hai tu bana le merko add kar dena

    • @takeUforward
      @takeUforward  Год назад +72

      @@techyouknow8026 lol frequency, bro the entire sheet is at your hand, you can do it by self also, simple google search will give you answers if you stuck, but the thing is, you just want to be a keyboard warrior.
      The though topics are fully covered, so stop crying, I will upload at my speed, because I have a full time job, its not easy to work 9 hours and then create content.

  • @dinimeegada9167
    @dinimeegada9167 Год назад +156

    We are so fortunate to live in an era where striver lives........
    ❤ from Andhra Anna ......

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

      striver bro andhra na bro

    • @Md_sadiq_Md
      @Md_sadiq_Md 4 месяца назад +1

      Iam also from Andhra Pradesh, Vijayawada

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

      @@Md_sadiq_Md avunu bro maa kulapodey

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

      @@rgvcultman Ok
      Enjoy

    • @SaGaR-is1jg
      @SaGaR-is1jg 4 дня назад +1

      teri wajah se usse english mai padhana padhra hai anna ke chacha

  • @NGANTALALITHA
    @NGANTALALITHA Год назад +130

    I'm from Andhra Pradesh, when I decided to learn DSA I searched a lot of streams, but I'm still stuck somewhere. After Watching your videos, it's just awesome. It very much helpful to beginners like me.... Thank you so much sir. After this I'm become a fan of striver......

    • @uday2159
      @uday2159 10 месяцев назад +1

      Which college are you

    • @asish4554
      @asish4554 6 месяцев назад +2

      Are you from ap ?

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

      Yee college meru

    • @Md_sadiq_Md
      @Md_sadiq_Md 4 месяца назад +2

      Iam also from Andhra Pradesh
      From Vijayawada, VR Siddhartha Engineering College ❤

    • @hydershaikh18
      @hydershaikh18 5 дней назад

      iam also from Vr sid clg bro,Aiml you ?​@@Md_sadiq_Md

  • @bharathslip9
    @bharathslip9 12 дней назад +5

    I think this course can be directly included in any bachelor/maters courses by collages. Nobody can teach better than this. Please keep up this good work going. KUDOS

  • @DR-mq1le
    @DR-mq1le Год назад +80

    For all those that couldnt get the 1634 test case right in the armstrong questoin, the power of each digit is equal to the no. of digits in the number
    for example :
    if it is a 4 digit number (1634) , then (1^4)+(6^4)+(3^4)+(4^4)=1634
    if it is 3 digit then instead of 4 power will be 3
    heres the code:
    #include
    bool checkArmstrong( int n)
    { string digits=to_string(n);
    int digitcount=digits.size();
    int num=n;
    int r=0;
    int pal=0;
    while(n>0)
    {
    r=n%10;
    pal=pow(r,digitcount)+pal;
    n=n/10;
    }
    if(pal==num)
    {
    return true;
    }
    else
    return false;
    }
    might not be optimal but it is how i tried and it works

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

      yeah u r right even i got this mistake in most of the google search results but chatgpt and gfg gave me the right answer

    • @MemoryFlick
      @MemoryFlick 8 месяцев назад +2

      is this correct as well ?? what about time complexity???
      { int i=0;
      int N = 371;
      int duplicateOfN1 = N;
      int d2 = N;
      while(N>0)
      {
      N=N/10;
      i++;
      }
      int sum = 0;
      int digitcount=i;
      while(duplicateOfN1>0)
      {
      int lastdigit = duplicateOfN1%10;
      duplicateOfN1 = duplicateOfN1/10;
      sum = sum+((int)Math.pow(lastdigit, digitcount));
      }
      if(sum==d2)
      System.out.println("it is an armstrong number");
      else
      System.out.println("it is not an armstrong number");
      }

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

      Actually power =number of digits in the number so try with power 4 it will work .

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

      Thanks it helped

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

      thanks bro!

  • @anshujaiswal5622
    @anshujaiswal5622 8 месяцев назад +12

    Thanks a lot Striver for this amazing content. Honestly, the simplicity and the way of enplaning algorithm by breaking them down does help a lot of Beginner Folks to grasp DSA concepts.
    Understood Striver :)

  • @rajkumarvb5197
    @rajkumarvb5197 Год назад +7

    Thanks a lot for your effort Striver! Best explanation for GCD algo so far I've seen!

  • @Vardhan.coding
    @Vardhan.coding 7 месяцев назад +2

    I started preparing DSA and Take you forward is a life saviour! Lots of love Striver.

  • @sarveshneekhra5611
    @sarveshneekhra5611 6 месяцев назад +32

    I'm from a tear-3 college, current i am 6th sem. Student and i followed your videos and your A2Z DSA playlist is amazing bcz everything is well structured and easy to understand, your way of explaining is truly amazing, Thanku striver ❤, huge respect brother and keep make it more DSA video and guide us.

  • @akris_adi
    @akris_adi Год назад +7

    Within first 5 minutes I realised the value these videos will be adding in the coding journey of the geeks !!

  • @nizarahamed.m1004
    @nizarahamed.m1004 Год назад +13

    You are just amazing bro,Never seen such intellectual person with a clear explanation.

  • @amanshah1995
    @amanshah1995 5 месяцев назад +1

    HEY Striver ! You are just amazing .The simplicity your course has it's too easy for the beginner to grasp the knowledge Thanks man !

  • @AlwaysAStranger
    @AlwaysAStranger 3 месяца назад +2

    Have seen many DSA courses, none of them taught me math and DSA techniques in so much detail. Very Helpful Thank you!

  • @vinaykumarmaryala9041
    @vinaykumarmaryala9041 Год назад +8

    Hi @Raj, Thanks a lot for all your efforts, I am one of the people who are benefitting from your Sde sheet and your youtube videos, also I feel you deserve the name striver. you are the real savior for many people like me.
    May god bless you... and you are a pious soul for sure.
    Thanks striver..

  • @komal6816
    @komal6816 4 месяца назад +1

    You seem to be under the weather. And yet you are teaching, making videos with such effort making it look effortless. Hats off!

  • @surajbaranwal56.
    @surajbaranwal56. Год назад +3

    I already have been read advanced dsa, because of striver's teaching pattern I watched this complete lecture ,even I knew all these topics instead learn something. That's how this bootcamp is game changer for all beginner ninja's who want to live conding

  • @user-ff2uu2wz4w
    @user-ff2uu2wz4w 8 месяцев назад +2

    Your video playlist is so super easy when I decide to learn the Dsa I searched a lot of sites or RUclips but your way and teaching is amazing and the Practicing on Note is so brilliant ❤

  • @cinime
    @cinime Год назад +1

    Understood! Super fantastic explanation as always, thank you very much!!

  • @karunasagarks5228
    @karunasagarks5228 Год назад +2

    Finally, here we go ! Thank you very much striver !!! 🤩🥳🔥❤️

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

    Thank you for creating such valuable and informative content! It's greatly appreciated.

  • @paulbarsha1740
    @paulbarsha1740 Год назад +5

    The amount of effort you put into each of your video🙌

  • @karanbhoi5895
    @karanbhoi5895 9 месяцев назад +13

    23:55
    One correction !!
    Armstrong number is the number in any given number base, which forms the total of the same number, when each of its digits is raised to the power of the number of digits in the number.
    1634 is not equal to 1^3 + 6^3 + 3^3 + 4^3
    it is equal to 1^4 + 6^4 + 3^4 + 4^4

    • @chicha8482
      @chicha8482 4 месяца назад +2

      Can u provide the code for it am doing cmath and using pow function to use the number of powers equal to total no. Of digits but in 1634 its giving false

  • @rohandhalpe9084
    @rohandhalpe9084 Год назад +34

    Sir upload videos as much as possible, as our placement season starts from June .Hope I will learn maximum till June 💝💝💝💝💝💝💝💝💝💝😭😭😭😭

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

      Bro did you get placed?

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

      ya bro in toshiba software @@Tihorcreation

    • @TarunPurohit02
      @TarunPurohit02 10 месяцев назад +2

      ​@@Tihorcreation💀

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

    #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...

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

    understood, this guy is an absolute champion!

  • @tanmayjivnani865
    @tanmayjivnani865 15 дней назад

    What a content man! Thank you!

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

    Thanks a lot Striver!! you make very stuff so easy to understand in simple terms..

  • @rohanprabhakar1991
    @rohanprabhakar1991 Год назад +21

    Sir, you are helping me in doing hard work and making me experience the relief after doing the hard work we get
    Thanks for all your support
    Only have one request. I know you have been trying to make videos as fast as you can, but actually the placement is in the next 6-7 months, so if you can try to upload the beginner part as soon as possible, it would be beneficial to move for the other playlist of you which you have been uploaded in the past about different topics.
    Thank you for all the resources bhaiya(sir).

    • @uday2159
      @uday2159 10 месяцев назад +1

      Did you complete all topics?

  • @shashanks6906
    @shashanks6906 Год назад

    Amazing. I loved the GCD part, understood very well. Thank you so much

  • @Manishgupta200
    @Manishgupta200 Год назад +2

    Striver your video is superb.. and in each video you taught in a very energetic way which makes your video very interesting. All the part in the video is amazing but the last.. i.e. Euclidean’s theorem and reducing loop by half by sqrt.. method is wonderfull.. Now, I try to build-up this type of logic in every Q. to reduce time & space complexity. Thankyou Striver ❤

  • @DivineVision201
    @DivineVision201 Год назад +4

    Hi @Raj sir. Thanks for the video also Congratulations for your 300k subscribers. Looking forward for your more wonderful videos. Truly enjoying. ❤

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

    I really like the explanation, specially the pattern in which you have explained starting from count digits till gcd.

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

    Thank you striver for explaining all the basic math stuff mostly in other courses the instructor assume that we already know they simply explain the code.

  • @supriya_codes
    @supriya_codes Год назад

    started dsa with your this course,thank you!

  • @Akash-yr2if
    @Akash-yr2if Год назад +25

    Congrats Striver for 300K Sub. Let's hope striver see's this comment.

  • @sheikmuizzahmed2308
    @sheikmuizzahmed2308 Год назад +18

    Thanks alot! Please complete this DSA series for beginners asap. It helps alot for beginners in dsa like us 🙏. The only complain I have from your other DSA playlist is it's not begginer friendly and needs abit dsa knowledge

    • @Z71990
      @Z71990 Год назад

      This year I got Civil branch in my state NIT. Can I understand this course as a begineer and also as a non-cs student?
      Also is this playlist is enough for placement or from any other playlist I have to study ?

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

      Yes

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

      Try to complete the strivers a2z DSA course sheet

  • @Rakibulislam-bp3kv
    @Rakibulislam-bp3kv 6 месяцев назад

    Your video is very informative. I can learn new things from every video. I knew all of this topic. but your video taught me new things, and how to think clearly. Thank you, sir.

  • @shivanshsingh176
    @shivanshsingh176 Год назад +29

    Your amazing playlists specially graph and dp helped me to improve a lot. Can you please create a playlist for CP as well.

  • @user-mc8sc1gf8q
    @user-mc8sc1gf8q 9 месяцев назад

    very well explained sir i have just started the series and I am getting each and every thing . Your teaching methodology is just insanely superb.
    Please asap bring a linked list series as well sir

  • @webtestingui7187
    @webtestingui7187 Год назад

    🙏 🙏 🙏 🙏 🙏 hats off to you, preparing this videos require a lot of time and from your busy schedule you are preparing for us Thank you, Dada.

  • @AmartyaPardeshi
    @AmartyaPardeshi Год назад +1

    Great teaching, understood all the concepts effortlessly

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

    I can't believe he is doing this for free, amazing sir. Love from Bangladesh.

  • @sonalshinde4960
    @sonalshinde4960 Год назад +1

    Hey Striver, its been 1 month since i started following u...i must say u r the best....i don't think anyone would have explained the dp problems or any problem for that matter the way u have explained them!!!Thanks a million ....words are not enough to praise u...the kind of passion u have to teach students for free is just awesome...may god bless u
    ..

  • @niranjanniru4115
    @niranjanniru4115 3 месяца назад +2

    im from chennai and love to watch ur lectures and learning through ur dsa sheet bro ..

  • @kashafkhan9726
    @kashafkhan9726 Год назад +2

    Congrats striver bhai for 300K subscribers.
    Hope it cross million soon.

  • @YoyoChintu-wt8gw
    @YoyoChintu-wt8gw 2 месяца назад

    best one till now!!! 🙏🙏🙏

  • @stith_pragya
    @stith_pragya 6 месяцев назад +2

    UNDERSTOOD.......Thank You So Much for this wonderful video........🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻

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

    What a brilliant way of teaching hats off to you and thank you so much for the content ;)

  • @arnd12940
    @arnd12940 Год назад +1

    much more needed these topics

  • @user-zn4bg9bp8a
    @user-zn4bg9bp8a Год назад +14

    1.3 - C++ STL and Java Collection should be a single topic like C++ STL / Java Collection. Not separate topic. So one can move forward with everything checked.

  • @neerajkumarshaw1019
    @neerajkumarshaw1019 Год назад +1

    Understood and Loved It

  • @ManavMSanger
    @ManavMSanger Год назад

    I really appreciate your efforts. Thank you.

  • @Shwetasingh-yz4fx
    @Shwetasingh-yz4fx 9 месяцев назад

    Perfect and simplest explanation found ever

  • @yamini436
    @yamini436 Год назад +1

    understood the assignment :) thanks striver

  • @532hariharareddyg5
    @532hariharareddyg5 Год назад

    very clear and crisp explanation.

  • @Dilipkumar-nr6fh
    @Dilipkumar-nr6fh Год назад

    Excellent Sir,My honorable thanks for making these videos with excellent explanation❤.

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

    It's great to learn from this channel ❤️Thank you:-)

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

    no one teaches maths in theire dsa course...this is indeed an AtoZ dsa course.. blessed to have it❤

  • @rakhibhagwat670
    @rakhibhagwat670 19 дней назад

    Great content for any professional or an engineering student❤💯. Thank you sir for taking this much of efforts 💯

  • @sujayshanbhag2055
    @sujayshanbhag2055 Год назад +1

    Hey Striver, I am a 5th semester student of a tier-3 college, first of all thankyou for all your videos, I have completed your graph series, almost completed your SDE sheet. I needed your help so I joined your channel. I see that your last members only post was a year ago, I understand that u have a full time job and therefore you are busy. I just wanted to know if you will continue making meeting sessions, because I need your guidance. Thanks again for your hard work.

  • @vedantdeshmukh1549
    @vedantdeshmukh1549 Год назад

    Thank you Striver!

  • @shorts_shots514
    @shorts_shots514 Год назад

    thank you so much for creating this playlist

  • @DevashishJose
    @DevashishJose Год назад

    Understood, thanks for your hard work.

  • @smoothierudiee
    @smoothierudiee 14 дней назад

    thank u so much for a wonderful video !

  • @harima6678
    @harima6678 7 дней назад

    great content!

  • @technicaldoubts5227
    @technicaldoubts5227 Год назад +1

    I was waiting from last 5 days. Finally come 😌😌

  • @abhishekmaurya817
    @abhishekmaurya817 Год назад

    Amazing. I understood very well

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

    so far, this is better than the paid courses 🔥🔥🔥.

  • @Santhoshmani1
    @Santhoshmani1 Год назад +7

    Thank you striver. Basic maths completed. Coded along with you. Made the notes for the lecture .

  • @PrithaMajumder
    @PrithaMajumder 2 месяца назад +1

    Raj, Thanks a lot for This Amazing Video about C++ Basic Maths
    Lecture - 7 Completed ✅

  • @user-rr9ub2nv3l
    @user-rr9ub2nv3l 5 месяцев назад

    @Striver
    Great Way! Understood completely

  • @anirudhcodes
    @anirudhcodes Год назад +1

    I never though i will be able to solve these so easily, thanks a lot striver for make it very very simple and easy to understand.

    • @mizzzile
      @mizzzile Год назад +1

      Euclidean algo is so easy this way...

    • @anirudhcodes
      @anirudhcodes Год назад

      @@mizzzile yes 🥹

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

    i have learnt awesome things from this vid 💖 , thank you

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

    your teaching skills are awesome bro

  • @kyuantym
    @kyuantym Год назад

    Striver is an inspiration ❤️

  • @rishavdobriyal8201
    @rishavdobriyal8201 4 месяца назад

    amazing way of explaining stuff

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

    Understood, Thank you so much!!!

  • @poonam-kamboj
    @poonam-kamboj 10 месяцев назад

    very nicely explained!!

  • @abhisheksivalingala6420
    @abhisheksivalingala6420 Год назад

    Nice explaination....understood❤️🙌

  • @sayantaniguha8519
    @sayantaniguha8519 Год назад

    u r god !!
    beast!!
    keep up the good work bhaiya!!

  • @shubhamagarwal1434
    @shubhamagarwal1434 9 месяцев назад

    Very nice explanation...God Bless You

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

    understood, and it is time to practice by myself!!

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

    Understood well!

  • @aryanshgupta7439
    @aryanshgupta7439 4 месяца назад

    Understand, superb video, keep up ♥

  • @chaitanya20821
    @chaitanya20821 4 месяца назад

    Great way of teaching

  • @ShwetaSingh-iw6dk
    @ShwetaSingh-iw6dk Год назад +2

    Unstoppable striver for a reason 🙌❤

  • @madhavamelkote4554
    @madhavamelkote4554 4 месяца назад

    God bless you brother, i am in better place all thanks to you!!!

  • @AmitKumar-xc2rk
    @AmitKumar-xc2rk 8 месяцев назад

    Understood, Thanks for this amazing content

  • @Hipfire786
    @Hipfire786 4 месяца назад

    understood everthing great video sir

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

    understood striver :) thank u for this wonderful lectures

  • @tanisha2504
    @tanisha2504 Год назад

    started working on this a-z dsa course.. Have a job but want to start over these topics .. To switch to a better one!!!

  • @user-lo1dy2gd3q
    @user-lo1dy2gd3q Год назад

    Amazing Video!!

  • @pavan305
    @pavan305 Год назад

    Waiting for this one from morning 🙂

  • @nahid017
    @nahid017 Год назад +1

    love u r content💚

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

    Bhaiya maza aa gya
    Fully understood 😃😃

  • @AkarthikeyaReddy
    @AkarthikeyaReddy Год назад

    Congrats For 300K Subscribers Bhaiya

  • @user-wt8qm9rv1f
    @user-wt8qm9rv1f Месяц назад

    Beautiful algorithm

  • @ByteBuilder-b6u
    @ByteBuilder-b6u 13 дней назад

    In the eucledian algo why we are taking min(a,b) in time complexity like the time complexity should be logphi(max(a,b))
    Because we take max of a, b and divide that.
    Like in count digit we write log10(N) where N is the number divided by 10, so here max(a,b) is the dividend in eucledian algo

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

    Mind blowing content❤❤

  • @ForTech-rt6qi
    @ForTech-rt6qi 3 месяца назад

    great content! understood.