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

  Рет қаралды 943,769

take U forward

take U forward

Күн бұрын

Пікірлер: 990
@takeUforward
@takeUforward 2 жыл бұрын
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 2 жыл бұрын
Bhaiya i have good foundation in java can I do these sheet in java lang
@brajeshmohanty2558
@brajeshmohanty2558 2 жыл бұрын
@@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 2 жыл бұрын
@@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 2 жыл бұрын
@@arunn121 dekh bro mid Jan se toh mera end sem hai tu bana le merko add kar dena
@takeUforward
@takeUforward 2 жыл бұрын
@@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 Жыл бұрын
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 Жыл бұрын
Which college are you
@asish4554
@asish4554 Жыл бұрын
Are you from ap ?
@Ramesh-ramesh-03
@Ramesh-ramesh-03 Жыл бұрын
Yee college meru
@Md_sadiq_Md
@Md_sadiq_Md 10 ай бұрын
Iam also from Andhra Pradesh From Vijayawada, VR Siddhartha Engineering College ❤
@hydershaikh18
@hydershaikh18 6 ай бұрын
iam also from Vr sid clg bro,Aiml you ?​@@Md_sadiq_Md
@dinimeegada9167
@dinimeegada9167 Жыл бұрын
We are so fortunate to live in an era where striver lives........ ❤ from Andhra Anna ......
@unanimousu
@unanimousu Жыл бұрын
striver bro andhra na bro
@Md_sadiq_Md
@Md_sadiq_Md 10 ай бұрын
Iam also from Andhra Pradesh, Vijayawada
@rgvcultman
@rgvcultman 7 ай бұрын
@@Md_sadiq_Md avunu bro maa kulapodey
@Md_sadiq_Md
@Md_sadiq_Md 7 ай бұрын
@@rgvcultman Ok Enjoy
@rgvcultman
@rgvcultman 6 ай бұрын
@@Md_sadiq_Md vurikae anna bro nak telidhu
@akris_adi
@akris_adi 2 жыл бұрын
Within first 5 minutes I realised the value these videos will be adding in the coding journey of the geeks !!
@Tbm4545
@Tbm4545 Ай бұрын
Whats ur status bro r u placed or still in college where u have reached ins triver dsa sheet
@akris_adi
@akris_adi Ай бұрын
@Tbm4545 I've placed through off campus in an mnc
@akris_adi
@akris_adi Ай бұрын
I've been*
@gopalakrishnan618
@gopalakrishnan618 Ай бұрын
@@akris_adi how helpful would you say these dsa sheets were overall
@akris_adi
@akris_adi Ай бұрын
@@gopalakrishnan618 I would say 4.5/5
@Vardhan.coding
@Vardhan.coding Жыл бұрын
I started preparing DSA and Take you forward is a life saviour! Lots of love Striver.
@MuskanSingh-vw2rt
@MuskanSingh-vw2rt 5 ай бұрын
kitta prepare ho gya bhai 8 months mei
@bharathslip9
@bharathslip9 6 ай бұрын
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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
Actually power =number of digits in the number so try with power 4 it will work .
@AshikPoojary
@AshikPoojary Жыл бұрын
Thanks it helped
@shikharpandey9265
@shikharpandey9265 9 ай бұрын
thanks bro!
@anshujaiswal5622
@anshujaiswal5622 Жыл бұрын
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 :)
@sarveshneekhra5611
@sarveshneekhra5611 Жыл бұрын
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.
@a_maxed_out_handle_of_30_chars
@a_maxed_out_handle_of_30_chars Жыл бұрын
tier*
@bunnytheweebster
@bunnytheweebster Жыл бұрын
He meant tear only 🥲​@@a_maxed_out_handle_of_30_chars
@ojasvivashisht-f9m
@ojasvivashisht-f9m 7 ай бұрын
which college ?
@cs_harshitha__088
@cs_harshitha__088 5 ай бұрын
got placed?
@sukuxsharma
@sukuxsharma 5 ай бұрын
Kaha se structured iski to playlist me hi ulti seedi vdeo lgri h muje
@AlwaysAStranger
@AlwaysAStranger 9 ай бұрын
Have seen many DSA courses, none of them taught me math and DSA techniques in so much detail. Very Helpful Thank you!
@surajbaranwal56.
@surajbaranwal56. 2 жыл бұрын
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
@komal6816
@komal6816 10 ай бұрын
You seem to be under the weather. And yet you are teaching, making videos with such effort making it look effortless. Hats off!
@nizarahamed.m1004
@nizarahamed.m1004 2 жыл бұрын
You are just amazing bro,Never seen such intellectual person with a clear explanation.
@vinaykumarmaryala9041
@vinaykumarmaryala9041 2 жыл бұрын
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..
@niranjanniru4115
@niranjanniru4115 10 ай бұрын
im from chennai and love to watch ur lectures and learning through ur dsa sheet bro ..
@rajkumarvb5197
@rajkumarvb5197 Жыл бұрын
Thanks a lot for your effort Striver! Best explanation for GCD algo so far I've seen!
@preethamreddy9610
@preethamreddy9610 2 ай бұрын
Understood. Today is November 19th, 2024 and i have just completed watching this video. I will come here periodically to update my status and my offers! Wish me luck!
@amanshah1995
@amanshah1995 11 ай бұрын
HEY Striver ! You are just amazing .The simplicity your course has it's too easy for the beginner to grasp the knowledge Thanks man !
@Akash-yr2if
@Akash-yr2if 2 жыл бұрын
Congrats Striver for 300K Sub. Let's hope striver see's this comment.
@Lucifer0872
@Lucifer0872 2 жыл бұрын
Aniket er bari giye
@Lucifer0872
@Lucifer0872 2 жыл бұрын
Aniket er barite code chapo
@sheikmuizzahmed2308
@sheikmuizzahmed2308 2 жыл бұрын
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
@khushiupadhyay686
@khushiupadhyay686 Ай бұрын
hey, can you please guide me. should i watch this playlist or should i follow the series from their website ,are they same or what? please reply
@rohandhalpe9084
@rohandhalpe9084 2 жыл бұрын
Sir upload videos as much as possible, as our placement season starts from June .Hope I will learn maximum till June 💝💝💝💝💝💝💝💝💝💝😭😭😭😭
@Tihorcreation
@Tihorcreation Жыл бұрын
Bro did you get placed?
@rohandhalpe9084
@rohandhalpe9084 Жыл бұрын
ya bro in toshiba software @@Tihorcreation
@TarunPurohit02
@TarunPurohit02 Жыл бұрын
​@@Tihorcreation💀
@rohanprabhakar1991
@rohanprabhakar1991 2 жыл бұрын
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 Жыл бұрын
Did you complete all topics?
@shayamkumar5929
@shayamkumar5929 5 ай бұрын
Bhai please tell how to you learn DSA because l can not able to understand nothing
@RozinaKakar-p6m
@RozinaKakar-p6m Жыл бұрын
Your video playlist is so super easy when I decide to learn the Dsa I searched a lot of sites or KZbin but your way and teaching is amazing and the Practicing on Note is so brilliant ❤
@paulbarsha1740
@paulbarsha1740 2 жыл бұрын
The amount of effort you put into each of your video🙌
@Dhanasri_Parisam
@Dhanasri_Parisam 4 ай бұрын
amazing bro,Never seen such intellectual person with a clear explanation.
@Joy-x9m
@Joy-x9m 2 жыл бұрын
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.
@sonalshinde4960
@sonalshinde4960 2 жыл бұрын
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 ..
@karanbhoi5895
@karanbhoi5895 Жыл бұрын
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 11 ай бұрын
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 5 ай бұрын
Exactly
@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...
@riteshsharma4229
@riteshsharma4229 2 жыл бұрын
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 2 жыл бұрын
@@takeUforward thank you for reply bhaiya your reply really motivate me to be Consistence
@andrea-kg9yx
@andrea-kg9yx 20 күн бұрын
Thank you for such amazing videos. It helps me a lot to grasp new concepts and revise old ones.
@DivineVision201
@DivineVision201 2 жыл бұрын
Hi @Raj sir. Thanks for the video also Congratulations for your 300k subscribers. Looking forward for your more wonderful videos. Truly enjoying. ❤
@amitkumarghosh
@amitkumarghosh Жыл бұрын
I can't believe he is doing this for free, amazing sir. Love from Bangladesh.
@shivanshsingh176
@shivanshsingh176 2 жыл бұрын
Your amazing playlists specially graph and dp helped me to improve a lot. Can you please create a playlist for CP as well.
@shwetachoudhary9003
@shwetachoudhary9003 7 ай бұрын
no one teaches maths in theire dsa course...this is indeed an AtoZ dsa course.. blessed to have it❤
@dhanraaj
@dhanraaj 2 жыл бұрын
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 2 жыл бұрын
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
@oye_pritpal
@oye_pritpal Жыл бұрын
understood, this guy is an absolute champion!
@saravanakumar7342
@saravanakumar7342 2 жыл бұрын
Make videos frequently bro,it will help for placements
@rushboba5883
@rushboba5883 4 ай бұрын
You are the best Striver! I didn't see anyone explaining this well!!❤❤😭😭
@16yogeshyadav31
@16yogeshyadav31 4 ай бұрын
hey i am also learning DSA from him would youu like to connect i still get stuck on some of topics..
@pavan305
@pavan305 2 жыл бұрын
Congratulations for 300k bro 💕🥳. And I've a doubt, is OOPS concept included in A2Z dsa series or not. A small doubt.
@sachinnegi2924
@sachinnegi2924 2 жыл бұрын
no bro
@pavan305
@pavan305 2 жыл бұрын
@@sachinnegi2924u knw the reason why it is excluded?
@sachinnegi2924
@sachinnegi2924 2 жыл бұрын
@@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 2 жыл бұрын
freecodecamp ka video achha hai
@stith_pragya
@stith_pragya Жыл бұрын
UNDERSTOOD.......Thank You So Much for this wonderful video........🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
@farhansadidzihan
@farhansadidzihan 2 жыл бұрын
Finally come!
@Rakibulislam-bp3kv
@Rakibulislam-bp3kv Жыл бұрын
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.
@amansinghal4663
@amansinghal4663 Жыл бұрын
Guyss... For finding LCM, you can simply use the below formula after getting the GCD: LCM(a,b) * GCD(a,b) = a*b
@amansinghal4663
@amansinghal4663 Жыл бұрын
@@techkunbyamogh It is returning 1 only. Dry run and check. Gcd (13,11) = gcd(13%11, 11) = gcd(2,11) Now, gcd(11,2) = gcd (11%2, 2) = gcd(1,2) Now, gcd(2,1) = gcd (2%1, 1) = gcd (0,1) Hence one of the element has become 0, so the other element is the answer. Similarly you can dry run the gcd(a,b) = gcd (a-b, b) formula also , you will get the same answer. I think you are making mistake while doing "a-b", instead of minus sign you may have put the comma.
@techkunbyamogh
@techkunbyamogh Жыл бұрын
@@amansinghal4663 got it tnx!!!
@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 ❤
@HarshitMalang
@HarshitMalang 5 ай бұрын
Anybody in Aug-2024 or after
@Dhruvvvvvv56
@Dhruvvvvvv56 5 ай бұрын
Me 😂
@susonly2004
@susonly2004 5 ай бұрын
me:)
@vkgamer9305
@vkgamer9305 5 ай бұрын
Me
@MamathaN-yr5hl
@MamathaN-yr5hl 4 ай бұрын
Me in September
@Codegirl_01
@Codegirl_01 4 ай бұрын
Yeah bro 🎉
@myyoutube5237
@myyoutube5237 5 күн бұрын
20:10 for reverse number, you can use Number! =0 condition in while loop, this condition also reverse negative numbers
@Hachiman-nf6zc
@Hachiman-nf6zc 8 ай бұрын
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?
@awalkingnosebleed
@awalkingnosebleed 6 ай бұрын
me too :(
@netrahindocha8423
@netrahindocha8423 Ай бұрын
Understood ☺ Best channel for DSA
@HimanshuYadav-e9i
@HimanshuYadav-e9i 3 ай бұрын
there is a small mistake you take a number 1634 is equal to the 1^3+6^3+3^3+4^3 but armstrong number is a number which is equal to the sum of digits to the power of how many digits in a number ... 1634 = 1^4+6^4+3^4+4^4 thanks 🙏🙏😇
@anirudhcodes
@anirudhcodes Жыл бұрын
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 Жыл бұрын
Euclidean algo is so easy this way...
@anirudhcodes
@anirudhcodes Жыл бұрын
@@mizzzile yes 🥹
@uttam.py2
@uttam.py2 Ай бұрын
who is starting in 2025
@SamiKhan-y6m
@SamiKhan-y6m 4 ай бұрын
Understood each and every concept thanks Striver
@msdarshankirthic
@msdarshankirthic 2 жыл бұрын
bro do some videos on maps, there are only very very few videos on youtube, please do one playlist
@proneetkumarseth6880
@proneetkumarseth6880 Жыл бұрын
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 5 ай бұрын
thnx
@vaibhavkadam476
@vaibhavkadam476 Жыл бұрын
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.
@hemanthpothala356
@hemanthpothala356 2 жыл бұрын
hi bro, doing masters(in CS) in the US costing 40-50 lakhs is really worth it? Are we able to repay the loan?
@Rational_Human1
@Rational_Human1 2 жыл бұрын
That's not the question , 40 - 50 lakhs u can repay with 7-8 months salary , if u get a job , loan is not a problem. Real question is h1b visa , with that lottery system , visa seems impossible to get.
@Bobby-vs3zc
@Bobby-vs3zc 28 күн бұрын
took me more than 2 days to finish this lecture. But the quality was top notch. Understood.
@karunasagarks5228
@karunasagarks5228 2 жыл бұрын
Finally, here we go ! Thank you very much striver !!! 🤩🥳🔥❤️
@kashafkhan9726
@kashafkhan9726 2 жыл бұрын
Congrats striver bhai for 300K subscribers. Hope it cross million soon.
@pravargupta6285
@pravargupta6285 2 жыл бұрын
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
@avipatel7106
@avipatel7106 4 ай бұрын
Understood! Love your content. Thank you for explaining it in simple terms.
@sujayshanbhag2055
@sujayshanbhag2055 2 жыл бұрын
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.
@PrithaMajumder
@PrithaMajumder 8 ай бұрын
Raj, Thanks a lot for This Amazing Video about C++ Basic Maths Lecture - 7 Completed ✅
@CinematicClips-uz3mk
@CinematicClips-uz3mk Жыл бұрын
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
@shazam8095
@shazam8095 2 ай бұрын
nice explanation much needed
@janarddanmandal2984
@janarddanmandal2984 8 ай бұрын
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)
@sanatwalia1432
@sanatwalia1432 8 ай бұрын
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
@AmartyaPardeshi
@AmartyaPardeshi Жыл бұрын
Great teaching, understood all the concepts effortlessly
@paramjjethwa8734
@paramjjethwa8734 2 ай бұрын
all divisor explained beautifully
@nurulain5534
@nurulain5534 9 ай бұрын
so far, this is better than the paid courses 🔥🔥🔥.
@MayankVerma-e9x
@MayankVerma-e9x 4 ай бұрын
Understood.. for armstrong number here's my java solution : public static boolean isArmstrongNumber(int n){ int x = n; int sum = 0, count = 0; for(int i = 1; i < n; i *= 10){ count++; } // while(x > 0){ int ld = x % 10; sum += Math.pow(ld, count); x = x / 10; } return sum == n; }
@virajdeshpande5043
@virajdeshpande5043 Жыл бұрын
Thank you for creating such valuable and informative content! It's greatly appreciated.
@paramjjethwa8734
@paramjjethwa8734 2 ай бұрын
dude amazing i am doing with python the count digit logic is really well explained
@udit5490
@udit5490 Жыл бұрын
I really like the explanation, specially the pattern in which you have explained starting from count digits till gcd.
@abudeepa0474
@abudeepa0474 5 ай бұрын
Thankyou striver...you made all the things understand in the simplest way,......
@hasnainmemon_01
@hasnainmemon_01 4 ай бұрын
your teaching skills are top notch🔥
@ShwetaSingh-iw6dk
@ShwetaSingh-iw6dk 2 жыл бұрын
Unstoppable striver for a reason 🙌❤
@supriya_codes
@supriya_codes 2 жыл бұрын
started dsa with your this course,thank you!
@adityakumardixit8779
@adityakumardixit8779 Жыл бұрын
Bhaiya maza aa gya Fully understood 😃😃
@payalthakur6065
@payalthakur6065 4 ай бұрын
Great learning from the video ❤
@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.
@AbhinavTiwari-u7b
@AbhinavTiwari-u7b Жыл бұрын
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
@Shwetasingh-yz4fx
@Shwetasingh-yz4fx Жыл бұрын
Perfect and simplest explanation found ever
@cinime
@cinime 2 жыл бұрын
Understood! Super fantastic explanation as always, thank you very much!!
@jayanth1844
@jayanth1844 Жыл бұрын
Thanks a lot Striver!! you make very stuff so easy to understand in simple terms..
@rakhibhagwat670
@rakhibhagwat670 6 ай бұрын
Great content for any professional or an engineering student❤💯. Thank you sir for taking this much of efforts 💯
@YoyoChintu-wt8gw
@YoyoChintu-wt8gw 8 ай бұрын
best one till now!!! 🙏🙏🙏
@madhavamelkote4554
@madhavamelkote4554 10 ай бұрын
God bless you brother, i am in better place all thanks to you!!!
@technicaldoubts5227
@technicaldoubts5227 2 жыл бұрын
I was waiting from last 5 days. Finally come 😌😌
@vYadav16380
@vYadav16380 10 ай бұрын
I wish i would have known abt this channel earlier rather than spending money on paid course thank u striver.
@PriyadarshiniAddakula
@PriyadarshiniAddakula 4 ай бұрын
understood!!!!!!!!!!!!!!!!!! may god bless you striver bro.
@letcodez
@letcodez 10 ай бұрын
24:15 bro did a mistake which was noticed already, An Armstrong number is a number that is equal to the sum of the nth powers of its digits, where n is the total number of digits in the number. For a four-digit number, the power used for each digit would indeed be 4, not 3. Refer to the link for better understanding, kzbin.infozrrLbXFEjtY?feature=share
@ByteBuilder-b6u
@ByteBuilder-b6u 6 ай бұрын
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
@PrabalSingh2908
@PrabalSingh2908 Ай бұрын
understand striver thanks for making it much clearer
@shashanks6906
@shashanks6906 Жыл бұрын
Amazing. I loved the GCD part, understood very well. Thank you so much
@adrianfernandes2004
@adrianfernandes2004 5 ай бұрын
The best I repeat the best explanation ever💫
@asiftech4u859
@asiftech4u859 3 ай бұрын
your gcd explanation is awesome
@KoushikDas2005
@KoushikDas2005 11 ай бұрын
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 .
@AbhayBagoriyahacker
@AbhayBagoriyahacker 8 ай бұрын
What a brilliant way of teaching hats off to you and thank you so much for the content ;)
@yamini436
@yamini436 Жыл бұрын
understood the assignment :) thanks striver
L2. Print all Divisors of a Number | Maths Playlist
9:10
take U forward
Рет қаралды 51 М.
Andro, ELMAN, TONI, MONA - Зари (Official Audio)
2:53
RAAVA MUSIC
Рет қаралды 8 МЛН
Jeff Dean: AI will Reshape Chip Design - NeurIPS 2024
43:53
GradientSpills
Рет қаралды 6 М.
Algebra 2 Introduction, Basic Review, Factoring, Slope, Absolute Value, Linear, Quadratic Equations
3:59:44
Darts in Higher Dimensions (with 3blue1brown) - Numberphile
32:11
Numberphile
Рет қаралды 2 МЛН
Every Sorting Algorithm Explained in 120 minutes (full series)
1:57:33
Kuvina Saydaki
Рет қаралды 84 М.
How to Remember Everything You Read
26:12
Justin Sung
Рет қаралды 4 МЛН
The World's Best Mathematician (*) - Numberphile
10:57
Numberphile
Рет қаралды 8 МЛН
Andro, ELMAN, TONI, MONA - Зари (Official Audio)
2:53
RAAVA MUSIC
Рет қаралды 8 МЛН