LeetCode 1198 — Find Smallest Common Element in All Rows
Given an m x n integer matrix mat where each row is sorted in non-decreasing order, find the smallest integer that appears in every row.
- Return the smallest such integer if it exists. -...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
