7 kyu
Bouncy Numbers
485 of 531datagram
Loading description...
Mathematics
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.
python new test framework is required. updated in this fork
Approved
Ruby 3.0 should be enabled, see this to learn how to do it
fixed
This comment has been hidden.
It would be helpful to provide an actual definition of a 'bouncy number' rather than mere examples. More than one possible definition matches the given examples.
Ruby translation kumited -- please check and approve
'alr approved some time ago'
Thanks for fun kata! :) I've decided to leave a small present: regex solution! Enjoy :-)
Hey, how come 99 isn't a bouncy number??? It's digits are neither increasing nor decreasing :(
Per the description, all numbers under 100 are non-bouncy.
Yeah, I saw that . I was just confused with the conflicting definition .
How do I get my kata approved by moderators?
I'm getting error 500 while trying to edit. Do you have "Allow contributors" checked BTW? Your chances are not too high without it.
I allowed contributors; didn't realize this was a requirement for getting out of beta.
Otherwise nice kata! :-)
Added both, thanks for the input.