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.
- Prepare
- Java
- Data Structures
- Java Hashset
- Discussions
Java Hashset
Java Hashset
Sort by
recency
|
393 Discussions
|
Please Login in order to post a comment
If solving for the case where {a,b} is the same as {b,a} as most people are doing to accunt for Test5 being wrong, why not use a Set as the key? Then no need to do this Key and InvertKey logic? That's in the spirit of using Sets as per the challenge! (even though, again, the challenge is not correct)
Resuelto
Test case #5 conflicts with the requirement that the pair (a, b) should not be treated as the same as (b, a).
Test case #5 is incorrect tho