Prison Break: Largest Hole After Removing Bars

Problem Description

A prison fence is made of horizontal and vertical bars. The horizontal bars are numbered from 1..n, and the vertical bars are numbered from 1..m.

You are given two arrays:...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: