7 kyu
The Coins of Ter | Round to the Next N
98 of 1,011bkaes
Loading description...
Puzzles
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.
JS Update to
Node 18.x
.
Ruby 3.0 should be enabled, see this to learn how to do it
MD formatting is broken.
Enabled in this fork
Python, there are still
xrange
s in sample tests.Removed random tests from sample tests.
Python 3 should be enabled.
Already done
Wondering if anyone was able to implement this kata using recursion without reaching stack limit during testing?
Why would you use recursion, or rather why would you use a loop for this problem?
Yeah i do suppose it is unthinkable someone would use a loop for this problem. How dare I?
*sigh* My question was a honest one. I intended to understand why you would use recursion. Oh, how dare I ask such a question.
The arguments appear to be backwards in some of your examples.
Just marking this as a suggestion not an issue because it doesn't stop anything but for the Javascript examples you attempt to use the new String templates but you surround the text with "" instead of ``.
That could have been an issue, since it results in bogus messages like "the result of adjust(${coin},${price}) isn't divisible by ${coin}". Either way, thanks for notifying. Fixed.
Nice kata!