Notice that there must be only one MOST_COMMON majority element
The key is to find the intersection.
One easy way to find intersection is to make row=min(row,list_row)
for rc in ops:
l=[int(i) for i in str(num)]
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.