I guessed that and it's one of the problems and i fixed it by transform the given number to an array of digits and then run your code over it but it returned 0
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Solution for your first kata can be shortened as
Thanks, it did improve the time complexity too
Shortened it even more. Cheers.
I just tried to submit it but it didn't work
I have not checked the kata, but my solution assumes given parameter is Array. That might be the source of your problem.
I guessed that and it's one of the problems and i fixed it by transform the given number to an array of digits and then run your code over it but it returned 0