Boolean Matrix

Boolean Matrix Set

1. Print unique rows in a given boolean matrix
http://www.geeksforgeeks.org/print-unique-rows/

2. Given a boolean 2D matrix, find the number of islands.
This is an variation of the standard problem: “Counting number of connected components in a undirected graph”.
http://www.geeksforgeeks.org/find-number-of-islands/

3. Given a binary matrix, find out the maximum size square sub-matrix with all 1s.
http://www.geeksforgeeks.org/maximum-size-sub-matrix-with-all-1s-in-a-binary-matrix/

4. Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.
http://discuss.leetcode.com/questions/260/maximal-rectangle

5. Given a 2D Boolean matrix consisting of 0s and 1s. Find the largest size rectangle having all four borders as 1. The interior of it may or may not be entirely filled with 1s.
http://www.careercup.com/question?id=14945873

6. Given a boolean matrix of size n x m. if the matrix has 1 at (i,j), fill the column j and row i with 1′s.
cracking code.

7. Given a boolean 2D array, where each row is sorted. Find the row with the maximum number of 1s.
http://www.geeksforgeeks.org/find-the-row-with-maximum-number-1s/

Comments

Popular posts from this blog

Sudoku

Longest prefix matching - trie

Climbing Stairs