Efficient C # program to count unique cells in a binary matrix
using System ; class GFG { static int MAX = 100 ; static int countUnique ( int [ , ] mat , int n , int m ) { int [ ] rowsum = new int [ n ] ; int [ ] colsum = new int [ m ] ;