Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Nice kata, but seems more like a 6 or 7.
Brute force is not encouraged at the solution, however I can ask, if you don't know the most basics of math like progressions, you anyway need to learn them to become effecient.
Print the input to help you debug your code.
This comment is hidden because it contains spoiler information about the solution
Yes it is. You're raising the digits to the power of 3, you're supposed to raise the digits to the amount of digits in the input number. So,
7
would be7**1
which is7
because the number7
only has one digit.7 is not a narcissistic number
There is still a precision problem using TS. Using the correct formula 1-3 tests fail
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Please mark your post as having spoiler content next time.
It seems you changed the name of the solution function? It sohuld be named
narcissistic
, but in your solution it isis_narcissistic_number
.This comment is hidden because it contains spoiler information about the solution
A good day. Can anyone help me? My code passed all the tests but it returns an error of DEADLYSIGNAL, tried to look for it online and havent quite got what that entails. Thanks in advance :D
Edit: I found the error and tried to reduce inherited values to a minimum. Remade it from scratch and submitted!
It's explained in the description, please read it there.
Loading more items...