Algorithm of minimal movement in 1D array to match positions of another array

后端 未结 0 711
面向向阳花
面向向阳花 2020-12-22 02:57

I am trying to solve this algorithm exercise:

Given two arrays of positions (ints) with the same length, A and B, the subject is to find the minimal movement of eleme

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