Armstrong Number Problem Statement
You are provided an integer 'NUM'. Determine if 'NUM' is an Armstrong number.
Explanation:
An integer 'NUM' with 'k' digits is an Armstrong number if the sum of its digits, each raised to the power of 'k', equals the number itself.
Input:
T, followed by T values of NUM
Output:
For each NUM, output 'YES' if it's an Armstrong number, 'NO' otherwise.
Example:
Input:
2
153
123
Output:
YES
NO
Explanation: '153' is an Armstrong number, whereas '123' is not.
Constraints:
1 <= T <= 100
1 <= NUM <= 10^9
- Time Limit: 1 sec
Note:
Just implement the function as described; printing is handled for you.

AnswerBot
4mo
Determine if a given integer is an Armstrong number by checking if the sum of its digits raised to the power of the number of digits equals the number itself.
Iterate through each digit of the number a...read more
Help your peers!
Add answer anonymously...
Optum Global Solutions Software Engineer interview questions & answers
A Software Engineer was asked 3mo agoQ. What is the process for implementing a linked list?
A Software Engineer was asked 3mo agoQ. What is an IoC (Inversion of Control) container?
A Software Engineer was asked Q. How can you arrange an array in decreasing order without using extra space, a so...read more
Popular interview questions of Software Engineer
A Software Engineer was asked 3mo agoQ1. What is the process for implementing a linked list?
A Software Engineer was asked 3mo agoQ2. What is an IoC (Inversion of Control) container?
A Software Engineer was asked Q3. How can you arrange an array in decreasing order without using extra space, a so...read more
Top HR questions asked in Optum Global Solutions Software Engineer
A Software Engineer was asked 4mo agoQ1. Rate your proficiency in the technologies listed in your skills.
A Software Engineer was asked Q2. Why do you want to join?
A Software Engineer was asked Q3. Explain your projects and work.
>
Optum Global Solutions Software Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

