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 hints

Topics

Also asked at 3 companies


More Instacart Questions

View all Instacart questions