Having trouble with sorting by removing inversion

后端 未结 0 899
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-09 13:49

If one sorting method create 2 Inversion in array, any array which has 2*n inversion can be sorted by that sorting method?

Example:

Sorting method: 1 2 3 -> 3 1

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