counter-deadlock-detection

Status: IN

In `countStudents`, deadlock is detected by `count[s] == 0` — no remaining student wants the current top sandwich — and the return value is the sum of all remaining counts.

Source: entries/2026/06/06/number-of-students-unable-to-eat-lunch-solution.md

JSON