โ† TBO questions
CodingEasy

Maximum consecutive days a customer can buy from a shop

Filed under TBO

The question

Given an array of 0 (open), 1 (closed, new stock) and -1 (closed, items returned), find the longest run of days the shop is open with stock.

No write-up yet. Related questions below have one.

Related TBO questions

Collected from public candidate posts and coding forums. Updated Nov 2026.