Symmetric Pairs

  • + 15 comments

    The question should be made a little more clear. When selecting the symmetric pair, it assumes x<=y . This is not mentioned in the problem. (for the pair x1,y1 and y1,x1 select only the one which has x<=y) Also for y=f(x), if x=y, it can be assumed that f(y)=x, however we need to find two pairs of x,y to consider that. This works as a great SQL problem, but the scenario is incorrect. We cannot think of this as a mathematical function.