#2037. Minimum Number of Moves to Seat Everyone
https://leetcode.com/problems/minimum-number-of-moves-to-seat-everyone/description/?envType=daily-question&envId=2024-06-13 /** * @param {number[]} seats * @param {number[]} students * @return {number} */ var minMovesToSeat = function (seats, students) { let res = 0 seats.sort((a, b) => b - a) students.sort((a, b) => b - a) for (let i...