Special Positions in a Binary Matrix

Solution Code
Video GuideLeetcode Daily

Time Complexity

O(m · n)

Space Complexity

O(m + n)