Skip to content

Commit 5a748de

Browse files
Update dynamic_programming/narcissistic_number.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 4e277e0 commit 5a748de

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

dynamic_programming/narcissistic_number.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ def get_digit_power(digit: int, power: int) -> int:
7070

7171
# Check each number up to the limit
7272
for number in range(limit):
73-
if number == 0:
74-
narcissistic_nums.append(0)
75-
continue
7673

7774
# Count digits
7875
num_digits = len(str(number))

0 commit comments

Comments
 (0)