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.
Which method in your opinion is faster/better:
1)to push into an array
2)to add step by step elements to a string
My tests on execution time in chrome showed that the second method seems a bit faster
So in test cases keys are simply sorted and in examples in description they are sorted in reverse order.
It is confusing.
Thanks for the hint. That was my idea as well, but that would not work with th eexample data "name=shirt&colors=white&colors=black". Or did I misundersood something?
Try to sort your keys.
Hey, in Python the order of the element in a dictionary is not defined. So how can I create an output that always (and in a deterministic way) matches the expected result considering the order of the items?