You are viewing a single comment's thread. Return to all comments →
I don't know why you want to sort, nowhere it said to sort. it just asked to print the unique pair count which you get just by doing .size() on set.
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 →
I don't know why you want to sort, nowhere it said to sort. it just asked to print the unique pair count which you get just by doing .size() on set.