Simple C++ using stack & queue || 0ms
\nint countStudents(vector<int>& students, vector<int>& sandwiches) {\n        queue<int> stud;\n        for(int i=0;i<students.size();i++)\n            stud.pu
```\nint countStudents(vector<int>& students, vector<int>& sandwiches) {\n        queue<int> stud;\n        for(int i=0;i<students.size();i++)\n            stud.push(students[i]);\n        stack<int> sand;\n        for(int i=sandwiches.size()-1;i>=0;i--)\n            sand.push(sandwiches[i]);\n        int repeat=0,eaten=0;\n        int n=stud.size();\n        while(repeat<n && !sand.empty() && !stud.empty()){\n            if(sand.top()==stud.front()){\n                sand.pop();\n                stud.pop();\n                eaten++;\n                repeat=0;\n            }else{\n                int temp=stud.front();\n                stud.pop();\n                stud.push(temp);\n                repeat++;\n            }\n        }\n        return n-eaten;\n    }\n```
['Stack', 'Queue', 'C', 'C++']