There are seats of length seats[i] represents the position of the students of length students[j] represents the position of the
In one move, you can increase or decrease the position of any student by
Return the minimum number of moves required to move each student to a seat such that each student occupies a unique seat.
Note: Multiple seats or students can share the same initial position.
Constraints:
n == seats.length == students.length
n
seats[i], students[j]
There are seats of length seats[i] represents the position of the students of length students[j] represents the position of the
In one move, you can increase or decrease the position of any student by
Return the minimum number of moves required to move each student to a seat such that each student occupies a unique seat.
Note: Multiple seats or students can share the same initial position.
Constraints:
n == seats.length == students.length
n
seats[i], students[j]