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.
This comment is hidden because it contains spoiler information about the solution
updated JS, freezing the object and its arrays. Added a note about that to the description.
That should resolve that problem.
Closing.
ok, now this is understandable.
first point: I bet you're mutating the lists using
reverse
without creating a copy. So there are 2 problems here: 1/ you shouldn't mutate the constant object, and 2/ the general design isn't good (I'll see to add a check that the data isn't modified)second point:smallest amount of bank notes should be used
means that you should use the smallest amount of bank notes, not the bank notes with the smallest amount.edit: I misread the order of the log message, lemme check further
edit²: ok, I checked, and with a correct solution, the reference solution is returning the "should be expected result", meaning:
3 * 500 EUR, 1 * 200 EUR, 1 * 50 EUR, 1 * 10 EUR, 1 * 5 EUR
. So I guess it's actually the very same problem than the first point.what do you even mean...?
if you open issues, plz do it properly, not using only vague sentences. Here, if Iwere about to tackle this I'd have no idea what this is about. Closing. Feel free to open a clear and detailed issue, tho.
Generic message, so that we're on the same page about some definitions (most doesn't apply here, but I'm confident you'll find what is relevant by yourself)
Issue
: problem in the kata itself (description, wrong tests, wrong internal solution...)Suggestions
: well, I guess that part is clearQuestion
anything else that is related to you having a problem solving a kata -> that's you, currently.When you post issues:
When you post a question: well, most of the above apply too x)
When you post code, use proper github markdown, so that it's readable.
cheers
oops, sorry about that. I'll be more cautious next time
Please, use spoiler flag when discussing a solution like that.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution