Largest Rectangle in Grid
Filed under Directi
The question
Given a grid of 3 rows and N columns, perform M operations to set ranges in rows to 1. Find the area of the largest rectangle containing only 1s. Must be solved in O(N).
No write-up yet. Related questions below have one.
Related Directi questions
Collected from public candidate posts and coding forums. Updated Nov 2026.