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.
JS => 6kyu
Fixed.
Fixed.
Fixed.
By the way, please post as a
question
if you're unsure about your code. Posting as anissue
is reserved for when there's a problem with the kata.are you mutating input?
in Python: solution is visible in test feedback
This comment is hidden because it contains spoiler information about the solution
There seems to be a problem with the random tests in Python 3.6, looking at the other issues, I can confirm this is not due to mutation of the input, this is a new
dict
being returned.Example:
As you can see in the output - the key
1
is present.The user can modify the input in Python (at least).
Solving for JS, the random tests are expecting Inter to come before Coventry alphabetically. Has anyone else experienced this? It switches places 3 and 5 with Florentina in the middle.
People, your guys included, should be taught when to use an
Object
and when to use anArray
. Because there is a difference. Accessing anArray
is anO(1)
operation; accessing anObject
is anO(log size)
operation.So this might not be the ideal example to teach about
Object
s, because author just reinvented anArray
as anObject
. There would be more suitable examples.I liked the concept of this kata but it seems fairly easy to kind of cheat on it. I feel the point of it was to train using objects but a lot of ppl are just turning the object into an array, using the sort() function, then making it into an object again. So I think that might be a flaw.
Approved - thank you for the translation! :)
Added - thank you :)
Loading more items...