Lucky Numbers in a Matrix
Try to solve the Lucky Numbers in a Matrix problem.
We'll cover the following
Statement
Given an
A lucky number is an element of the matrix such that it is the smallest element in its row and largest in its column.
Constraints:
matrix.length
matrix[i].length
, matrix[i][j]
All elements in the
matrix
are distinct.
Examples
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.