Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    Do you expect someone else to do your homework? Commented Apr 4, 2019 at 6:36
  • Could you say something about that thing you mentioned about sorting? Sorting the input would probably not help in solving this, but I'm confused as to why you mention it at all, mostly because it implies that you might have something other than positive integers as data. This makes me wonder what the data actually is and whether it contains whitespace characters other than between the columns. Commented Apr 4, 2019 at 11:58
  • There are only positive integrers between the two columns, I only mentioned sorting because initially I thought of using it in something in combination with uniq and then get only those that matched, but couldn't do it. You're right, it probably does not help to solve it. Commented Apr 5, 2019 at 23:48