【发布时间】:2020-05-06 21:19:35
【问题描述】:
def moveElementToEnd(array, toMove):
# Write your code here.
for i in array:
if i == toMove:
array.append(array.pop(array.index(i)))
return array
内置函数array.pop和array.index的时间复杂度是多少?
【问题讨论】: