Special Positions in a Binary Matrix
Given a binary matrix mat of size m x n, a "special position" is a position (i,j) in the matrix such that mat[i][j] is equal to 1 and all other elements in row i and column j are 0 (zeros).
Return the number of special positions in the binary matrix.
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)