Saddle Points — Solution & Editorial
Precompute each row's minimum and each column's maximum, then test every cell against both.
Complexity: O(NM)
Precompute each row's minimum and each column's maximum, then test every cell against both.
Complexity: O(NM)