What is the time complexity of Python List Reverse?

Yes, you are right, it is O(n) where n – length of list.
Look here for more information: https://www.ics.uci.edu/~pattis/ICS-33/lectures/complexitypython.txt

Leave a Comment