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.
Second half is basically finding all the semmetric pair by not including the ones where x=y more than once.
Also " f1.x<=f1.y " this condition is not specified in the problem statement but it's required otherwise it is almost difficult to get desired answer.
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 →
Second half is basically finding all the semmetric pair by not including the ones where x=y more than once. Also " f1.x<=f1.y " this condition is not specified in the problem statement but it's required otherwise it is almost difficult to get desired answer.