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

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

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

  • @takeUforward
    @takeUforward  ปีที่แล้ว +397

    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 ปีที่แล้ว +6

      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  ปีที่แล้ว +82

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

  • @NGANTALALITHA
    @NGANTALALITHA ปีที่แล้ว +172

    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 ปีที่แล้ว +1

      Which college are you

    • @asish4554
      @asish4554 8 หลายเดือนก่อน +2

      Are you from ap ?

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

      Yee college meru

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

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

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

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

  • @dinimeegada9167
    @dinimeegada9167 ปีที่แล้ว +208

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

    • @unanimousu
      @unanimousu 8 หลายเดือนก่อน +6

      striver bro andhra na bro

    • @Md_sadiq_Md
      @Md_sadiq_Md 5 หลายเดือนก่อน +1

      Iam also from Andhra Pradesh, Vijayawada

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

      @@Md_sadiq_Md avunu bro maa kulapodey

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

      @@rgvcultman Ok
      Enjoy

    • @SaGaR-is1jg
      @SaGaR-is1jg หลายเดือนก่อน +4

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

  • @DR-mq1le
    @DR-mq1le ปีที่แล้ว +100

    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 ปีที่แล้ว +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 10 หลายเดือนก่อน +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 9 หลายเดือนก่อน

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

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

      Thanks it helped

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

      thanks bro!

  • @bharathslip9
    @bharathslip9 2 หลายเดือนก่อน +10

    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

  • @HarshitMalang
    @HarshitMalang หลายเดือนก่อน +17

    Anybody in Aug-2024 or after

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

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

  • @sarveshneekhra5611
    @sarveshneekhra5611 8 หลายเดือนก่อน +38

    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.

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

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

  • @rohandhalpe9084
    @rohandhalpe9084 ปีที่แล้ว +36

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

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

      Bro did you get placed?

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

      ya bro in toshiba software @@Tihorcreation

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

      ​@@Tihorcreation💀

  • @anshujaiswal5622
    @anshujaiswal5622 10 หลายเดือนก่อน +13

    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 :)

  • @SamiKhan-y6m
    @SamiKhan-y6m 11 วันที่ผ่านมา +1

    Understood each and every concept thanks Striver

  • @nizarahamed.m1004
    @nizarahamed.m1004 ปีที่แล้ว +13

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

  • @rohanprabhakar1991
    @rohanprabhakar1991 ปีที่แล้ว +22

    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 ปีที่แล้ว +1

      Did you complete all topics?

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

      Bhai please tell how to you learn DSA because l can not able to understand nothing

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

    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

  • @Akash-yr2if
    @Akash-yr2if ปีที่แล้ว +28

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

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

      Aniket er bari giye

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

      Aniket er barite code chapo

  • @vinaykumarmaryala9041
    @vinaykumarmaryala9041 ปีที่แล้ว +9

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

  • @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 ปีที่แล้ว

      Yes

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

      Try to complete the strivers a2z DSA course sheet

  • @Vardhan.coding
    @Vardhan.coding 9 หลายเดือนก่อน +3

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

    • @MuskanSingh-vw2rt
      @MuskanSingh-vw2rt 23 วันที่ผ่านมา

      kitta prepare ho gya bhai 8 months mei

  • @rajkumarvb5197
    @rajkumarvb5197 ปีที่แล้ว +8

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

  • @komal6816
    @komal6816 5 หลายเดือนก่อน +1

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

  • @Joy-x9m
    @Joy-x9m ปีที่แล้ว +15

    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.

  • @riteshsharma4229
    @riteshsharma4229 ปีที่แล้ว +7

    bhaiya in question Print All divisors insted of vector we can also use set but time complexity remins same for both ds (nlog n for sort) and (nlogn for set)
    btw Thank you for all The Lectures and sheet

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

      Yes

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

      @@takeUforward thank you for reply bhaiya your reply really motivate me to be Consistence

  • @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.

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

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

  • @RozinaKakar-p6m
    @RozinaKakar-p6m 10 หลายเดือนก่อน +2

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

  • @amanshah1995
    @amanshah1995 7 หลายเดือนก่อน +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 !

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

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

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

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

  • @stith_pragya
    @stith_pragya 8 หลายเดือนก่อน +2

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

  • @hasnainmemon_01
    @hasnainmemon_01 10 วันที่ผ่านมา

    your teaching skills are top notch🔥

  • @oye_pritpal
    @oye_pritpal 11 หลายเดือนก่อน +1

    understood, this guy is an absolute champion!

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

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

  • @thenetworkbro
    @thenetworkbro ปีที่แล้ว +7

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

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

      Can you send me notes pdf??

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

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

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

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

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

    Thankyou striver...you made all the things understand in the simplest way,......

  • @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
    ..

  • @ByteBuilder-b6u
    @ByteBuilder-b6u 2 หลายเดือนก่อน

    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

  • @payalthakur6065
    @payalthakur6065 17 วันที่ผ่านมา +1

    Great learning from the video ❤

  • @karanbhoi5895
    @karanbhoi5895 10 หลายเดือนก่อน +15

    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 6 หลายเดือนก่อน +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

    • @tt-sb8ez
      @tt-sb8ez หลายเดือนก่อน

      Exactly

  • @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 🥹

  • @Rakibulislam-bp3kv
    @Rakibulislam-bp3kv 8 หลายเดือนก่อน

    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.

  • @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. ❤

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

    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.

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

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

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

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

  • @PriyadarshiniAddakula
    @PriyadarshiniAddakula 10 วันที่ผ่านมา

    understood!!!!!!!!!!!!!!!!!!
    may god bless you striver bro.

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

    Here is the soltion I came p with a little bit of trial and error. This solution also checks the integer overflow and also finds reverse for the negative number
    class Solution {
    public:
    int reverse(int x) {
    long long dup=x;
    long long n=0;
    if(dup0)
    {
    long long temp=dup%10;
    dup=dup/10;
    n=n*10+temp;
    if(n>INT_MAX)
    {
    return 0;
    }
    }
    if(x

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

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

  • @KoushikDas2005
    @KoushikDas2005 6 หลายเดือนก่อน +1

    Understood , but there are a few things that can be changed according to the logic given in the question as per the solution discussed , like in armstrong number . Btw, got to know about time complexities , the approach for optimizing solutions and all other things .

  • @adrianfernandes2004
    @adrianfernandes2004 24 วันที่ผ่านมา

    The best I repeat the best explanation ever💫

  • @virajdeshpande5043
    @virajdeshpande5043 11 หลายเดือนก่อน +1

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

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

    In your DSA sheet, the Reverse Number Question is different. It is changing the decimal into binary and then writing binary for reversed binary again

  • @Hachiman-nf6zc
    @Hachiman-nf6zc 4 หลายเดือนก่อน +6

    in the site when i click prime concept it opens to a different question called "minimum number of jumps" and i find the solution to be difficult. Could you explain that?

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

    Time Complexity Section:
    1. 14:40 (log10(n), log2(n), log5(n) when iterating condition value is divided by 10 or 2 or 5 respectively. And similarly for dividing by other numbers)

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

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

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

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

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

    I am very much grateful for the work you are doing for programming community. ❤
    Below is the "Print Divisors" code with Sorting in JAVA, which is not available in A2Z DSA course platform under optimal approach section.
    Thank You 😊
    import java.util.*;
    public class PrintDivOptimizedSort {
    public static void main(String[] args) {
    Scanner scn = new Scanner(System.in);
    System.out.println("Enter the number for which you want the divisors: ");
    int n = scn.nextInt();
    System.out.println();
    printDivisorsOptimalSort(n);
    scn.close();
    }
    public static void printDivisorsOptimalSort(int n) {
    List list=new ArrayList();
    System.out.println("The divisors of "+ n + " are: ");
    for(int i = 1; i

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

      thnx

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

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

  • @Shwetasingh-yz4fx
    @Shwetasingh-yz4fx 10 หลายเดือนก่อน

    Perfect and simplest explanation found ever

  • @anirashrey
    @anirashrey 10 หลายเดือนก่อน +1

    There are some problem in question, you tech reverse number in question sheet , question is based on Reverse the Bits of the number.....
    Pls provide the proper solution for the question

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

    I think this way is simple for reversing number without the occurrence of '0';
    void count(int n){
    while(n>0){
    int last_digit;
    last_digit= n%10;
    if(last_digit!=0){
    cout

  • @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.

  • @AbhinavTiwari-u7b
    @AbhinavTiwari-u7b 11 หลายเดือนก่อน

    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

  • @CinematicClips-uz3mk
    @CinematicClips-uz3mk 7 หลายเดือนก่อน

    25:25 this Armstrong number works only for 3 digits
    If you want to find less or more than 3 the approach should be
    1. Find the number of digits using int i = (int) log10(n)+1
    2. While loop n> 0
    3. Extract digits using n%10
    4. In the while loop use pow(digits,i) function to get power of that digit
    5. Check with the original n outside the loop

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

    Bhaiya maza aa gya
    Fully understood 😃😃

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

    Hey Striver I wanna highlight one point about Armstrong number logic you have explained might not correct...
    You said any number if we make cube of its digits and if it's equal to original number then it's an Armstrong number but this is not always the case..For example you said 1634 is an Armstrong number (which is true) if you calculate cubes of each digit like 1**3+6**3+3**3+4**3 is not equal to 1634
    Armstrong number is a number that equal to the sum of its own digits each raised to the power of the number of digits in original number
    So for 1634
    Total number digits is 4 so we should calculate each digit raise to 4 so 1**4+6**4+3**4+4**4==1634
    I see the gfg link you given has a test cases where 100

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

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

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

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

  • @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.

  • @ShwetaSingh-iw6dk
    @ShwetaSingh-iw6dk ปีที่แล้ว +2

    Unstoppable striver for a reason 🙌❤

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

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

  • @AnkushGhosh-x5t
    @AnkushGhosh-x5t 2 หลายเดือนก่อน

    there is a small edge case left in case of reverse number
    we should check the condition for the overflow
    if (reverse > Integer.MAX_VALUE / 10 || (reverse == Integer.MAX_VALUE / 10 && lastDigit > 7)) {
    return 0;
    }
    if (reverse < Integer.MIN_VALUE / 10 || (reverse == Integer.MIN_VALUE / 10 && lastDigit < -8)) {
    return 0;

  • @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!!!

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

    Make videos frequently bro,it will help for placements

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

    your teaching skills are awesome bro

  • @VijayKumar-l2v4x
    @VijayKumar-l2v4x 2 หลายเดือนก่อน +2

    leetcode is asking for premium for solving the armstrong problem

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

    started dsa with your this course,thank you!

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

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

  • @AbhijeetKumar-sb1sr
    @AbhijeetKumar-sb1sr 21 วันที่ผ่านมา

    armstrong code
    bool checkArmstrong(int n){
    int sum =0;
    int dum=n;
    int count=0;
    int temp=n;
    while(temp>0){
    count=count+1;
    temp=temp/10;
    }
    while(n>0){
    int ld=n%10;
    n=n/10;
    sum=sum+ pow(ld,count);
    }
    return dum==sum;
    }

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

    I learnt many things in this video

  • @pavan305
    @pavan305 ปีที่แล้ว +6

    Congratulations for 300k bro 💕🥳.
    And I've a doubt, is OOPS concept included in A2Z dsa series or not. A small doubt.

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

      no bro

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

      @@sachinnegi2924u knw the reason why it is excluded?

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

      @@pavan305 cause oops ka khali basic pta hona chaiye bilkul low level baki dsa m khi kaam nhi ati development m use hoti h wo

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

      freecodecamp ka video achha hai

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

    24:14 minor error bhaya
    armstrong number = sum of everydigit^(total no. of digits in number) for 1634(1^4 + 6^4 + 3^4 + 4^4 )

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

      Ahh yes my bad :(

    • @VIKASKUMAR-pc4jz
      @VIKASKUMAR-pc4jz ปีที่แล้ว +2

      #include
      #include
      void main()
      {
      int n,c=0,ans=0,re;

      scanf("%d",&n);
      int copy=n;
      int a=n;
      while(n>0)
      {
      n=n/10;
      c++;
      }
      while(copy>0)
      {
      re=copy%10;
      ans=ans+pow(re,c);
      copy=copy/10;
      }


      if(ans==a)
      {
      printf("true");
      }
      else
      {
      printf("false");
      }

      }

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

      hey bro,your code is correct but at the end it will show TLE
      @@VIKASKUMAR-pc4jz

    • @VIKASKUMAR-pc4jz
      @VIKASKUMAR-pc4jz ปีที่แล้ว

      👍@@anantagrahari2547

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

    Why in the "Print all divisors" problem, we are solving it in a way where the time complexity is O(sqrt(N))+O(n log(N))+O(N) and why not O(N)?

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

    Prime no : natural number starting from 2 , having 1 and itself as factors is a prime number.. Note : Natural Number is mandatory, otherwise it will go for -ve integers as well

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

    I wish i would have known
    abt this channel earlier rather than spending money on paid course thank u striver.

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

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

  • @watch2-grow
    @watch2-grow หลายเดือนก่อน

    UNDERSTOOD THANK YOU STRIVER

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

    Solution for print all divisors at 26:24 without sorting
    #include
    using namespace std;
    void printDivisors(int num, int n) {
    if (n * n > num) {
    return;
    }
    if (num % n == 0) {
    cout

  • @Dilipkumar-nr6fh
    @Dilipkumar-nr6fh ปีที่แล้ว

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

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

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

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

    The palindrome problem can also run without including using namespace std; as ---
    bool palindrome(int n) {
    int reversenum = 0;
    int dup = n;
    while (n > 0) {
    int ld = n % 10;
    reversenum = (reversenum * 10) + ld;
    n = n / 10;
    }
    return dup == reversenum;
    if (dup == reversenum) cout

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

    Very nice explanation...God Bless You

  • @NIRAJ-bu2hp
    @NIRAJ-bu2hp ปีที่แล้ว +2

    This Is Just Awesome video🔥🔥🔥🔥🔥🔥🔥

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

    understood the assignment :) thanks striver

  • @Amn_Kumr
    @Amn_Kumr 5 วันที่ผ่านมา

    bool checkArmstrong(int n){
    int dup = n;
    int sum = 0;
    int cnt = 0;
    while (n > 0) {
    int lastDigit = n%10;
    n = n/10;
    cnt = cnt + 1;
    }
    n = dup;
    while (n > 0) {
    int lastDigit = n%10;
    sum = sum + pow(lastDigit, cnt);
    n = n/10;
    }
    return dup == sum;
    }

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

    I understood everything and i am also a student of your your college JGEC😊

  • @YoyoChintu-wt8gw
    @YoyoChintu-wt8gw 3 หลายเดือนก่อน

    best one till now!!! 🙏🙏🙏

  • @532hariharareddyg5
    @532hariharareddyg5 ปีที่แล้ว

    very clear and crisp explanation.