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.
Or more relevant would be
[1, 2, 2, 1, 2]
needs to return[2, 1]
.exactly, but what do if input is inn form of list of string,
is slicing is only option we have?
Would be good to mention in the description that input list may go in the form of list of strings, like this:
[['[0,0,2]', '[0,0,0]', '[1,0,1]']]
Each moves first in turn, doesn't he?
Very nice, seems easy at first, but then you try to find what is not working
I have an issue with 'dangerous inputs' too.
"4 should equal 0" or "-1 should equal 0".
What does it mean? Test tries to pass only (4) or only (-1),
while the function needs two parameters (level,button)?
But in my code things that are not 0,1,2,3 do give 0.
I think whoever wrote that was intending to pass a copy of the list, instead of allowing manipulation on the list itself. I'm not sure it was really necessary here, though.
For what I know the first argument is divided by the rest of the argument seperately.
hmm in the test case...
what's the point of
*args[:]
?Isn't that the same as
*args
?Shall the first argument be divible on sum of rest or on every each argument?
I get try again: [1, 4, 3] should equal [4, 3, 1].
But what is the difference?