Number of Students Unable to Eat Lunch
\nclass Solution {\n    public int countStudents(int[] students, int[] sandwiches) {\n        int n = students.length;\n        int[] count = new int[2];\n     
```\nclass Solution {\n    public int countStudents(int[] students, int[] sandwiches) {\n        int n = students.length;\n        int[] count = new int[2];\n        for (int s: students) count[s]++;\n        for (int san: sandwiches) {\n            if (count[san] > 0) count[san]--;\n            else break;\n        }\n        return count[0] + count[1];\n    }\n}\n```
['Array']