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.
Because the query says
* wo pairs (X1, Y1) and (X2, Y2) are said to be symmetric pairs if X1 = Y2 and X2 = Y1.
This statement does not define an 'y bigger than or equal to x ' relationship. In my solution the way I mapped this sentence was
f1.x = f2.y and f2.x = f1.y and (f1.x != f1.y)
where f1, f2 are functions tables
Hope this helps.
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 →
Because the query says * wo pairs (X1, Y1) and (X2, Y2) are said to be symmetric pairs if X1 = Y2 and X2 = Y1. This statement does not define an 'y bigger than or equal to x ' relationship. In my solution the way I mapped this sentence was
Hope this helps.