Sunday, June 19, 2016

Print unique rows in a given boolean matrix

Given a binary matrix, print all unique rows of the given matrix.
Input:
{0, 1, 0, 0, 1}
        {1, 0, 1, 1, 0}
        {0, 1, 0, 0, 1}
        {1, 1, 1, 0, 0}
Output:
0 1 0 0 1 
1 0 1 1 0 
1 1 1 0 0 
http://www.geeksforgeeks.org/print-unique-rows/

No comments:

Post a Comment