developer-student-club-thapar / algo-book

The algo book that contains various algorithms in 4 different languages
https://algo-book.dsctiet.tech
GNU General Public License v3.0
16 stars 44 forks source link

Added Golang Armstrong #83

Closed anuragdevon closed 4 years ago

anuragdevon commented 4 years ago

Description of new pull request

Program Added - 1(ArmstrongNumber.go) Issue No.- #58

Checklist(self check):

anuragdevon commented 4 years ago

Heya! Check out this PR once.

DakshKK commented 4 years ago

Please add an issue for modifying the documentation if your file is a different implementation then explained.

Also please check your code once, as to what qualifies as an Armstrong number, since your code seems to fail if I would input a number of say 4 digits, since an Armstrong number is one, for which the sum of individual digits, raised to the number of digits, is equal to the original number.

[Explanation]()

Else implement your code so that it works only for digits of length 3, and fails for any other.

anuragdevon commented 4 years ago

Please add an issue for modifying the documentation if your file is a different implementation then explained.

Also please check your code once, as to what qualifies as an Armstrong number, since your code seems to fail if I would input a number of say 4 digits, since an Armstrong number is one, for which the sum of individual digits, raised to the number of digits, is equal to the original number.

Explanation

Else implement your code so that it works only for digits of length 3, and fails for any other.

I'm closing this Pr and adding a new one.