(TypeError: cannot unpack non-iterable int object) for inversion counter using merge sort

前端 未结 0 1833
生来不讨喜
生来不讨喜 2020-12-07 14:56

I am trying to do a recursive call to counter the number of inversion of a list of numbers

for example: [3,1,2,4] The two inversions are (3,1)

相关标签:
回答
  • 消灭零回复
提交回复
热议问题