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.
MDO1988 where did you find that the .setdefault() is faster? i tested it on my pc and i found .get() as faster.
if the key doesn't exist d.setdefault() will insert it with the default value. We don't need/want this behavior for this Kata, therefore d.get() is a better choice here ^^
No, the tests are ok, there is no such test, the test is like this:
Click reset if you see otherwise.
Testcase "small values" ((1, 3, 1), 6) is not valid, correct is ((1, 3, 1), 5) due to given rules (no swapping)
pls correct this value
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
With description so vague there's no way to properly address it. I will close it as invalid, and you can post again with some better explanation. But before you post again, please read this paragraph and this paragraph.
My script produces exactly the table that was requested, with all the requested features. And yet, it still complains that it doesn't pass the tests >_<
Read the last bullet point of this paragraph.
This comment is hidden because it contains spoiler information about the solution
You're welcome, closing the question.
oh damn !
Thank u so very much!!
if u stare too long at it, u loose sight of the details :D
Compare your result with the expected result:
You have some extra spaces.
well, that didnt resolve the issue unfortunatly, but thx anyways, i already should have know that the function has to be returned and not the print(), ups ^^
First of all, thank you for following those instructions, you've done that right.
print
returnsNone
, remove it from your code, return the string.Loading more items...