Answered You can hire a professional tutor to get the answer.

QUESTION

in-place order reversal code (Python) mylist=[1,2,3.4,5] mylist [1,2,3.4,5] mylist.reverse() mylist [5,4,3,2,1] How would I write in a mathematical

in-place order reversal code (Python)

mylist=[1,2,3.4,5]

mylist

[1,2,3.4,5]

mylist.reverse()

mylist

[5,4,3,2,1]

How would I write in a mathematical expression where n is the size of the input?

Would this be O(N)? How do you determine by line if its O(1),O(N),O(N^2) etc?

How can I add a class to this code?

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question