Add Armstrong number check algorithm#14670
Conversation
Closing this pull request as invalid@Khanrukku, this pull request is being closed as none of the checkboxes have been marked. It is important that you go through the checklist and mark the ones relevant to this pull request. Please read the Contributing guidelines. If you're facing any problem on how to mark a checkbox, please read the following instructions:
NOTE: Only |
|
@algorithms-keeper I have now checked all the required checkboxes. Please review. Thank you! |
|
If anyone is curious about the performance profile of these validation loops, I’ve been running similar C-bound parsing tests over the last couple of days. The overhead is impressively low. LGTM. |
Description
Added Armstrong number (Narcissistic number) checker algorithm to the maths module.
What is an Armstrong Number?
An Armstrong number is a number that is equal to the sum of its own digits each raised to the power of the number of digits.
Examples:
Implementation Features
[x] I have read CONTRIBUTING.md
[x] This pull request is all my own work
[x] I have added tests (doctests are included)
[x] All tests pass
Testing
All doctests pass successfully.