1134. Armstrong Number
https://leetcode.com/problems/armstrong-number
Description
Given an integer n
, return true
if and only if it is an Armstrong number.
The k
-digit number n
is an Armstrong number if and only if the kth
power of each digit sums to n
.
Example 1:
Example 2:
Constraints:
1 <= n <= 108
ac
Last updated