Update assignment
This commit is contained in:
parent
afda211746
commit
3778e0fd9e
|
@ -34,6 +34,6 @@ def _inversions(xs):
|
|||
total += left + right
|
||||
return (count + lcount + rcount), total
|
||||
|
||||
def inversions(xs):
|
||||
def num_inversions(xs):
|
||||
count, _ = _inversions(xs)
|
||||
return count
|
||||
|
|
Loading…
Reference in New Issue
Block a user