We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40ad1e9 commit 87f90d8Copy full SHA for 87f90d8
src/main/java/com/fishercoder/solutions/_1134.java
@@ -1,26 +1,5 @@
1
package com.fishercoder.solutions;
2
3
-/**
4
- * 1134. Armstrong Number
5
- *
6
- * The k-digit number N is an Armstrong number if and only if the k-th power of each digit sums to N.
7
- * Given a positive integer N, return true if and only if it is an Armstrong number.
8
9
- * Example 1:
10
- * Input: 153
11
- * Output: true
12
- * Explanation:
13
- * 153 is a 3-digit number, and 153 = 1^3 + 5^3 + 3^3.
14
15
- * Example 2:
16
- * Input: 123
17
- * Output: false
18
19
- * 123 is a 3-digit number, and 123 != 1^3 + 2^3 + 3^3 = 36.
20
21
- * Note:
22
- * 1 <= N <= 10^8
23
- * */
24
public class _1134 {
25
public static class Solution1 {
26
public boolean isArmstrong(int N) {
0 commit comments