But didn't it takes more time for slicing, if there is long list? And what if we check "len(arr) > 2" instead of "len(arr) > 1". Wouldn't it be faster?
This one actualy seems pretty good! But it also works without square brackets. So I really didn't get, what we use them for? Can someone please clarify this for me?
But didn't it takes more time for slicing, if there is long list? And what if we check "len(arr) > 2" instead of "len(arr) > 1". Wouldn't it be faster?
This comment is hidden because it contains spoiler information about the solution
Didn't get what this &-operator was doing. Can someone explain this to me?
upd Got it
This one actualy seems pretty good! But it also works without square brackets. So I really didn't get, what we use them for? Can someone please clarify this for me?