Fetching data...
This may take a moment
Back
1143. Find Smallest Common Element in All Rows
Medium
Array
Hash Table
Binary Search
Matrix
Counting
Solve on LeetCode
View Solutions
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.
Similar Questions
Intersection of Multiple Arrays
Easy
Statistics
Acceptance
76.8%
Submissions
71,274
Accepted
54,720