7 kyu
Numbers with d occurences of digit d
105 of 959marrakchino
Loading description...
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
make the argument (long n) negative in some test cases ;-)
just for fun (and because it could be negative)
There are a few mistakes in the description:
If 0 doesn't show up in the number then shouldn't this be a dd number? So 1551467759 should be a dd number since 0 shows up 0 times.
Please read that again. Not an issue.
Odd that I even checked for that but still missed it. Thanks.
This comment has been hidden.
Language? Paste your code and mark your post as having spoiler content
seems to be C (since python worked fine for me and looking at the last trained language of the user)
I'll leave it to someone else then. Not so much expertise in C.
This comment has been hidden.
I just rechecked and it works for me ... Could you clear your solution and try again?
This comment has been hidden.
Javascript translation kumited, please review and approve if you're fine with it.
LGTM, thanks for the translation!
So are the numbers always positive? It's not specified but there're no non-positive numbers.
Yes, it is not more interesting when they're negative. I'll change the description, thanks.