Check if Every Row and Column Contains All Numbers at Instacart
Easy53.9% acceptance
This problem has 100.0% frequency at Instacart.
Problem Description
An `n x n` matrix is **valid** if every row and every column contains **all** the integers from `1` to `n` (**inclusive**). Given an `n x n` integer matrix `matrix`, return `true` _if the matrix is**valid**._ Otherwise, return `false`.
Read full problem and hintsTopics
Also asked at 3 companies
More Instacart Questions
Find First and Last Position of Element in Sorted ArrayMediumSquares of a Sorted ArrayEasyTime Based Key-Value StoreMediumAverage Waiting TimeMediumFind the Length of the Longest Common PrefixMedium
View all Instacart questions