Open breeze37 opened 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}
@Ayush7614 @ravikr126 please assign me this in python under LGM Soc 21
@Ayush7614 @ravikr126 please assign me this in C++ under LGM Soc 21.
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