Closed matthewsamuel95 closed 6 years ago
i will do it.
I can do this. can i use any language?
Yes Any language. https://www.youtube.com/watch?v=g8bSdXCG-lA This resource should be useful that the algorithm is possible to run in O(Row x Col).
Thanks for the link.. It was helpful.
On 26 Oct 2017 9:57 p.m., "matthewsamuel95" notifications@github.com wrote:
Reopened #91 https://github.com/matthewsamuel95/ACM-ICPC-Algorithms/issues/91.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/matthewsamuel95/ACM-ICPC-Algorithms/issues/91#event-1312346255, or mute the thread https://github.com/notifications/unsubscribe-auth/AeEhDFB7sNgm2bHGSUq35E6O9TC3tx-Vks5swLL9gaJpZM4QHKX3 .
Given a binary matrix. The problem is to find the largest area rectangular sub-matrix with equal number of 1’s and 0’s.
Input : mat[][] = { {0, 0, 1, 1}, {0, 1, 1, 0}, {1, 1, 1, 0}, {1, 0, 0, 1} } Output : 8 sq. units (Top, left): (0, 0) (Bottom, right): (3, 1)
Input : mat[][] = { {0, 0, 1, 1}, {0, 1, 1, 1} }
Output : 6 sq. units
Time Complexity : O(Row x Col)