1143. Find Smallest Common Element in All Rows

Medium
Array
Hash Table
Binary Search
Matrix
Counting

Description

Hints

Hint 1
Notice that each row has no duplicates.
Hint 2
Is counting the frequency of elements enough to find the answer?
Hint 3
Use a data structure to count the frequency of elements.
Hint 4
Find an element whose frequency equals the number of rows.

Statistics

Acceptance
76.8%
Submissions
71,274
Accepted
54,720