codinasion-archive / codinasion-monorepo

Community Monorepo
https://codinasion.org
MIT License
52 stars 170 forks source link

This logic does not work for 4 digits and above numbers. #4399

Closed brundabharadwaj closed 1 year ago

brundabharadwaj commented 1 year ago

Update https://github.com/codinasion/program/blob/master/program/check-armstrong-number/CheckArmstrongNumber.rb

This logic does not work for 4 digits and above numbers. image

Improvement : Can be modified to first identify the no of digits and then add the Armstrong logic to the same

Originally posted by @brundabharadwaj in https://github.com/codinasion/program/pull/7012#pullrequestreview-1358071901

codinasion-bot[bot] commented 1 year ago

👋🏻 Hey @brundabharadwaj

💖 Thanks for opening this issue 💖

A team member should be by to give feedback soon.