Search
⌘K
Get Premium
Leetcode 2133. Check if Every Row and Column Contains All Numbers
Determine whether every row and every column of an n×n matrix contains all integers from 1 to n (i.e., each row/column is a permutation of 1..n). Values are in [1,n] and n ≤ 100, so this can be checked with simple per-row and per-column membership/count checks.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.