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 part that says (a,b) is not the same as (b,a) is not correct. The solution counts ni kg and kg ni as the same. This fixes Test 5. The test case is not correct, or the task definition.
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 part that says (a,b) is not the same as (b,a) is not correct. The solution counts ni kg and kg ni as the same. This fixes Test 5. The test case is not correct, or the task definition.