Efficient Javascript program to count unique cells in a binary matrix
let MAX = 100 ; function countUnique ( mat , n , m ) { let rowsum = new Array ( n ) ; rowsum . fill ( 0 ) ; let colsum = new Array ( m ) ; colsum . fill ( 0 ) ;