Given an integer
n
, returntrue
if and only if it is an Armstrong number.The
k
-digit numbern
is an Armstrong number if and only if thekth
power of each digit sums ton
.
1 | class Solution { |
Given an integer
n
, returntrue
if and only if it is an Armstrong number.The
k
-digit numbern
is an Armstrong number if and only if thekth
power of each digit sums ton
.
1 | class Solution { |