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
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