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'm such a dumb....
thks !
Hi
You have a test for submition that might be like this:
Here is what I've got when I'm doing this "manually" (args are separated with
><
):So clearly this should be rejected if I understand instruction.
Can you tell me what I miss ?
Thks.
Just a remark; instead of:
for item in range(len(order)):
element = order[item]
[...]
you can use:
for item, element in enumerate(order):
[...]
I think it's more elegant.
I do not think you solution is very elegant because you reparse your list ans for every element on order.
So your complexity is (in the worst case) something like O(n^2) (exactly it would be n*(n-1)/2).