Given an m x n matrix of distinct numbers, return all lucky numbers in the matrix in any order.
A lucky number is an element of the matrix such that it is the minimum element in its row and maximum in its column.
Watch related videos:
▶ Find Valid Matrix Given Row and Column Sums | Leetcode 1605 | Interview Question for DSA - • Find Valid Matrix Given Row and Column Sum...
▶ Lexicographical Numbers | Leetcode 386 | Interview Question for DSA - • Lexicographical Numbers | Leetcode 386 | I...
▶ Distribute Coins in Binary Tree | Leetcode 979 | Interview Question for DSA - • Distribute Coins in Binary Tree | Leetcode...