Max Consecutive Open Shop Days
Filed under TBO
The question
Given daily shop status codes (0 for open, 1 for closed with restock, -1 for closed with returns), find the maximum number of consecutive days a customer can visit when the shop has items.
No write-up yet. Related questions below have one.
Related TBO questions
Collected from public candidate posts and coding forums. Updated Nov 2026.