Narcissistic Number
Given an integer n
, return whether it is equal to the sum of its own digits raised to the power of the number of digits.
https://binarysearch.com/problems/Narcissistic-Number
Examples
Example 1
Input
- n =
153
Output
- answer =
True
Explanation
153 = 1 ** 3 + 5 ** 3 + 3 ** 3
Leave a comment