{"id":"counter-deadlock-detection","text":"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.","truth_value":"IN","source":"entries/2026/06/06/number-of-students-unable-to-eat-lunch-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"counter-deadlock-detection","truth_value":"IN","reason":"premise"}]}}