✅ Easy C++ Solution
Code\n\nclass Solution {\npublic:\n    int minMovesToSeat(vector<int>& seats, vector<int>& students) {\n        sort(seats.begin(),seats.end());\n        sort(s
# Code\n```\nclass Solution {\npublic:\n    int minMovesToSeat(vector<int>& seats, vector<int>& students) {\n        sort(seats.begin(),seats.end());\n        sort(students.begin(),students.end());\n\n        int ans = 0;\n        int n = seats.size();\n        for(int i=0;i<n;i++)\n        {\n            int temp = abs(seats[i] - students[i]);\n            ans = ans + temp;\n        }\n        return ans;\n    }\n};\n```
['C++']