array problem involving pair swaps and positions

前端 未结 0 1993
半阙折子戏
半阙折子戏 2021-01-23 02:52

There are N people standing in a line where the person i is at the ith position initially. A sequence of moves s given by K pairs of positions ai and bi is given. At each minute

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