Ayush7614 / Daily-Coding-DS-ALGO-Practice

A open source project🚀 for bringing all interview💥💥 and competative📘 programming💥💥 question under one repo📐📐
https://daily-ds-algo.github.io/DS-Algo-Website/
MIT License
323 stars 474 forks source link

Find all symmetric pairs in an array of pairs #1469

Open breeze37 opened 3 years ago

breeze37 commented 3 years ago

Given an array of pairs of integers, find all symmetric pairs, i.e., pairs that mirror each other. For instance, pairs (x, y) and (y, x) are mirrors of each other.

For example

Input: {3, 4}, {1, 2}, {5, 2}, {7, 10}, {4, 3}, {2, 5}

Output:

{4, 3} | {3, 4} {2, 5} | {5, 2}

Programming language

breeze37 commented 3 years ago

@Ayush7614 @ravikr126 please assign me this in python under LGM Soc 21

AastikSharma05 commented 3 years ago

@Ayush7614 @ravikr126 please assign me this in C++ under LGM Soc 21.