EASIEST C++ solution || Beginner-friendly approach || Beats 100% !!
Code\n\nclass Solution {\npublic:\n    int countStudents(vector<int>& students, vector<int>& sandwiches) {\n        int count = 0, i = 0;\n\n        queue<int> 
# Code\n```\nclass Solution {\npublic:\n    int countStudents(vector<int>& students, vector<int>& sandwiches) {\n        int count = 0, i = 0;\n\n        queue<int> q;\n        for(auto s : students)\n            q.push(s);\n        \n        while(count < q.size() && i < sandwiches.size()){\n            if(sandwiches[i] == q.front()){\n                q.pop();\n                i++;\n                count = 0;\n            }\n            else{\n                q.push(q.front());\n                q.pop();\n                count++;\n            }\n        }\n        return q.size();\n    }\n};\n```
['Array', 'Queue', 'Simulation', 'C++']