coder_life
Leetcode1 Interesting Numbers (Basics-Part 1)
1. Armstrong number 1.armStrong.py: #!/usr/bin/python # Env: python3 # Rewrite by afei_0and1 ''' 1. Suppose there is a k-digit number N, and the sum of the k powers of the numbers on each digit is also N, then this number is the Armstrong number. Now give you a positive integer N, let you determine whether this number is an Armstrong number, if it is, return True, if not, return False. EG: 153 is a 3-digit number, and: 153=1^3+5^3+3^3 Armstrong number is actually a self-power number, and the thr