Search
⌘K

Leetcode 1380. Lucky Numbers in a Matrix

Given an m×n matrix of distinct numbers, return all "lucky" elements that are the minimum in their row and simultaneously the maximum in their column. Essentially compute row minima and column maxima and output any values that appear in both.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.