Java 5 Liner - O(n) (Count Zeros and Ones)
\npublic int countStudents(int[] students, int[] sandwiches) {\n\tint[] countZeroAndOne = new int[2];\n\tfor (int i: students) countZeroAndOne[i]++;\n\tfor (int
```\npublic int countStudents(int[] students, int[] sandwiches) {\n\tint[] countZeroAndOne = new int[2];\n\tfor (int i: students) countZeroAndOne[i]++;\n\tfor (int i=0;i<sandwiches.length;i++) \n\t\tif (--countZeroAndOne[sandwiches[i]] < 0) return sandwiches.length - i;\n\treturn 0;\n}\n```
[]