Beats 96% of users.. trust this code for accurate results
Bold\n\n# Code\n\nclass Solution:\n\n    def minMovesToSeat(self, seats: List[int], students: List[int]) -> int:\n\n        seats.sort()\n\n        students.sor
**Bold**\n\n# Code\n```\nclass Solution:\n\n    def minMovesToSeat(self, seats: List[int], students: List[int]) -> int:\n\n        seats.sort()\n\n        students.sort()\n\n        c = 0\n\n        for i,j in zip(seats, students):\n\n            c+=(abs(i-j))\n\n        return c\n\n        \n```
['C', 'Python', 'C++', 'Java', 'Python3', 'JavaScript']