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.
I decided to perform this task without the "replace" function. I decided to complicate my task
thank you for your help,
Added C Translatation, Please Approve.
on it now. Thank you. just got confused as it passed most of test examples and failed on few.
Managed to fix what was wrong there and even tried to do my 1st 1 liner.
Thank you for your help. Didn't want to Google Narcissistic Numbers as there would be a ready code for it. Tried to use
my own (still small) skills.
A problem with your code is not a kata issue, check your list compehensions.
Read this please: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution
How many digits has 371? Read the description again.
is that right that 371 and 407 return TRUE ???
How can ???
3 ** 1 = 3
7 ** 1 = 7
1 ** 1 = 1
sum of its is = 11
11 == 371 ????
CMIIW
remember to mark comments as spoiler when you are putting your code here!
edit:
(x,y) is (input, expected value)
you have to return the expected value
This comment is hidden because it contains spoiler information about the solution
Sorry, I'm still newby
This comment is hidden because it contains spoiler information about the solution
return is ok, but still have a problem with time limit
Your code should not show valid output, but should return a valid result. See this for some help: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution#expected-the-same
Your code is very slow, as you can read. Try to speed up him using dynamic programming ( basics of it )
What do you mean? Time limit is reached? Your code is so slow... Try to think different ( basics of dynamic programming will help you xD )
Loading more items...