GeeksforGeeks » Algorithms

maximum number of 1's in a sub matrix

(1 post)
  • Started 8 months ago by Ramesh
  1. Ramesh
    guest
    Posted 8 months ago #

    A n*n matrix contains 1's and 0's . write a algorithm to print a sub matrix that contains only 1's and it should contains maximum number of 1's compare to other sub matrix contains only 1's... for example
    INPUT:
    0 1 1 0
    0 1 1 0
    1 0 1 1
    OUTPUT:
    11
    11


Reply

You must log in to post.

RSS feed for this topic