← ALL NOTES
Array

2975. Maximum Square Area by Removing Fences From a Field

A field m×n with internal horizontal fences hFences and vertical fences vFences. By removing any fences, obtain the maximum-area square whose sides lie on the remaining fences/borders. Answer modulo…

Loading…