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.
The problem statement clearly says "That also implies (a, b) is not same as (b, a)", but following that causes test case 5 to fail. To "fix" my solution, I had to treat (a, b) and (b, a) as identical. Please update the problem to reflect this.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Hashset
You are viewing a single comment's thread. Return to all comments →
The problem statement clearly says "That also implies (a, b) is not same as (b, a)", but following that causes test case 5 to fail. To "fix" my solution, I had to treat (a, b) and (b, a) as identical. Please update the problem to reflect this.