cover me in ashes

vendredi


More problems

This is a pretty standard one:

Given an n x n matrix containing only 1s and 0s, find the area of the largest rectangle (with sides parallel to the ends of the matrices) that contain only 1s.

Time Complexity required:

O(n^3) is trivial.

If anyone has an O(n^2) solution, please tell me!

The solution I have now is O(n^2 log n).

posted by ncmhp @ 28.10.05

covermeinashes : a syndicated collective

covermeinashes is:
anodyne. wayward wordsmith latter day aesculapius.
ncmhp. ....
fcs
.
tormented lover poet bard.

diversions

contrails

Powered by Blogger