← BNY Mellon questions
CodingReported in a candidate post, Apr 2022

Maximum gap after bar removal

Filed under BNY Mellon

Given an `N x M` grid formed by `N` horizontal and `M` vertical bars, specified bars are removed. Removing adjacent bars forms larger contiguous gaps. Find the maximum area of a rectangular gap…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related BNY Mellon questions

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