Рет қаралды 495,196
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