Available question text
Given an m×n matrix where each row is sorted in non-decreasing order, find the smallest integer that appears in every row (or return -1 if none). Exploit the row ordering (e.g., multi-pointer advancement or frequency counting across rows) to detect a common element efficiently.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1198. Find Smallest Common Element in All Rows
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source