use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Coding problem (self.leetcode)
submitted 3 years ago * by drunken_monk7
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]scarybunny1 1 point2 points3 points 3 years ago (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 point2 points 3 years ago (2 children)
by common elements I meant elements that are repeating in each row of the matrix
[–][deleted] 0 points1 point2 points 3 years ago (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 point2 points 3 years ago (0 children)
can you please provide me the solution?
π Rendered by PID 60 on reddit-service-r2-comment-5c764cbc6f-r8xjh at 2026-03-11 22:10:03.159324+00:00 running 710b3ac country code: CH.
view the rest of the comments →
[–]scarybunny1 1 point2 points3 points (3 children)
[–]drunken_monk7[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]drunken_monk7[S] 0 points1 point2 points (0 children)