这是一段薛盼盼的代码
def InversePairs(self, data):
sortData = sorted(data)
count = 0
for i in sortData:
pos = data.index(i)
count += pos
data.pop(pos)
return count
这是一段薛盼盼的代码
def InversePairs(self, data):
sortData = sorted(data)
count = 0
for i in sortData:
pos = data.index(i)
count += pos
data.pop(pos)
return count
本文标题:薛盼盼
本文链接:https://www.haomeiwen.com/subject/stquoftx.html
网友评论