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.
It is required to eliminate the repeatition of rows. For example there are two rows symmetrical 21, 12 and 12,21 then without f2.x >f1.x it will print both 21,12 and 12,21. But we want to print only one of them so writing either of f2.x>f1.x or f2.x
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 →
It is required to eliminate the repeatition of rows. For example there are two rows symmetrical 21, 12 and 12,21 then without f2.x >f1.x it will print both 21,12 and 12,21. But we want to print only one of them so writing either of f2.x>f1.x or f2.x