There is a rectangular field with dimensions m $ imes$ n. The field has boundary horizontal fences at positions m, and boundary vertical fences at positions n.
Inside the field, additional horizontal fences are placed at positions specified by the array hFences, and additional vertical fences are placed at positions specified by the array vFences.
You can remove any number of horizontal or vertical fences, including zero. Return the maximum area of a square field that can be formed by the remaining fences, modulo
Constraints:
m, n
hFences.length, vFences.length
hFences[i] m
vFences[i] n
All elements in hFences and vFences are unique.
There is a rectangular field with dimensions m $ imes$ n. The field has boundary horizontal fences at positions m, and boundary vertical fences at positions n.
Inside the field, additional horizontal fences are placed at positions specified by the array hFences, and additional vertical fences are placed at positions specified by the array vFences.
You can remove any number of horizontal or vertical fences, including zero. Return the maximum area of a square field that can be formed by the remaining fences, modulo
Constraints:
m, n
hFences.length, vFences.length
hFences[i] m
vFences[i] n
All elements in hFences and vFences are unique.