We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
select f1.x, f1.y from Functions f1 join Functions f2 on f1.x = f2.y and f1.y = f2.x where f1.x <= f1.y and f1.rowid != f2.rowid group by f1.x, f1.y order by f1.x, f1.y ;
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Symmetric Pairs
You are viewing a single comment's thread. Return to all comments →
select f1.x, f1.y from Functions f1 join Functions f2 on f1.x = f2.y and f1.y = f2.x where f1.x <= f1.y and f1.rowid != f2.rowid group by f1.x, f1.y order by f1.x, f1.y ;