check which combination in y became x with minimum swaps. we can swap as may times and any 2 elements

后端 未结 0 1898
情书的邮戳
情书的邮戳 2021-01-18 13:21

check which combination in y became x with minimum swaps. we can swap as may times and any 2 elements. Expected output=[3 4 4 3 2 3 3 4] my output=[6 6 7 4 4 5 6 7]



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