Find maximum consecutive free parking slots
Filed under EPAM
The question
Given an array or layout representing parking slots, find the maximum number of consecutive available/free slots. Optimize the solution to O(n) time.
No write-up yet. Related questions below have one.
Related EPAM questions
Collected from public candidate posts and coding forums. Updated Nov 2026.