Can someone please explain how does [::-1]
work? I have read somewhere that it reverses the list, I tried it and it actually works, but I do not know how. What do the 2 colons mean? I could not find anything like this in python documentations.
Also, does someone know the efficiency of this or the underlying algorithm?