Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 1700. Number of Students Unable to Eat Lunch
Given a queue of students with binary sandwich preferences and a stack of sandwiches (top first), students rotate to the back until someone takes the top sandwich; return how many students remain when no one wants the current top. The problem reduces to scanning the sandwich stack and tracking remaining counts of each preference until a sandwich type has zero students left.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.