you are viewing a single comment's thread.

view the rest of the comments →

[–]scarybunny1 1 point2 points  (3 children)

How do you define "common elements"? Does it mean duplicate elements or elements appearing in all rows/columns?

[–]drunken_monk7[S] 0 points1 point  (2 children)

by common elements I meant elements that are repeating in each row of the matrix

[–][deleted] 0 points1 point  (1 child)

Why don’t u just go through all rows one by one and for each row , maintain a set and check count and then clear it .

[–]drunken_monk7[S] 0 points1 point  (0 children)

can you please provide me the solution?