c # code to print unique row in a given binary matrix
using System ; using System . Collections . Generic ; public class GFG { public static void printArray ( int [ ] [ ] arr , int row , int col ) { HashSet < string > set = new HashSet < string > ( ) ; for ( int i = 0 ; i < row ; i ++ ) { string s = " " ; for ( int j = 0 ; j < col ; j ++ ) { s += arr [ i ] [ j ] . ToString ( ) ; } if ( ! set . Contains ( s ) ) { set . Add ( s ) ; Console . WriteLine ( s ) ; } } }