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.
I understand your point. Thank you for your feedback! I'm considering updating the challenge to incorporate all hashable compound types, such as named tuples and custom-created iterable hashable objects, to ensure that the task is even more authentic. May I ask, if this would resolve the issue? Please, let me know your thoughts!!
How is it different from any other kata about flattening collections?
Objects need to be hashable. Unless one goes with custom types, tuples and frozensets are all that you can get (about iterables other than strings, I mean).
Yes, though a bit of a pitty you limit yourself to these types.
You are absolutely right, that's my bad. I changed the description. Does it sound okay now?
You talk about
Such as tuples or frozensets,
. Does that mean there can also be other types of Iterables? It matters, since several solutions just hardcode the types you suggested. This should definately be clarified in the description.Thank you!
Removed
yes.
(Note : you should remove the commented out line in
generate_random_test
)Should be fixed now. Did I make it correctly?
Oh, I got it, sorry. I will change it now
Hi! I am not sure why it shows up like that. For me, it shows as ` result1 = check_unique(arr)
` Is it the right way? Or I am not following it?
oh, but you wrote the code "backward" in the random tests.
Hence:
(you need to publish again, to "undraft" it again)
Fixed
Loading more items...