package com.fishercoder.solutions;

/**
 * 1134. Armstrong Number
 *
 * The k-digit number N is an Armstrong number if and only if the k-th power of each digit sums to N.
 * Given a positive integer N, return true if and only if it is an Armstrong number.
 *
 * Example 1:
 * Input: 153
 * Output: true
 * Explanation:
 * 153 is a 3-digit number, and 153 = 1^3 + 5^3 + 3^3.
 *
 * Example 2:
 * Input: 123
 * Output: false
 * Explanation:
 * 123 is a 3-digit number, and 123 != 1^3 + 2^3 + 3^3 = 36.
 *
 * Note:
 * 1 <= N <= 10^8
 * */
public class _1134 {
    public static class Solution1 {
        public boolean isArmstrong(int N) {
            return false;
        }
    }
}

@@ -645,20 +645,397 @@
     
-return false
+int numOfDigits = 0;%0A            int copyN = N;%0A            while (copyN %3E 0) %7B%0A                copyN /= 10;%0A                numOfDigits++;%0A            %7D%0A            int sum = 0;%0A            copyN = N;%0A            while (N %3E 0) %7B%0A                int digit = N %25 10;%0A                sum += Math.pow(digit, numOfDigits);%0A                N /= 10;%0A            %7D%0A            return sum == copyN
 ;%0A  

add solution for 1134