You are viewing a single comment's thread. Return to all comments →
My Solution: HashSet> set = new HashSet<>();
for(int i = 0; i<t; i++) { List<String>list = new ArrayList<>(); list.add(pair_left[i]); list.add(pair_right[i]); set.add(list); System.out.println(set.size()); }
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 →
My Solution: HashSet> set = new HashSet<>();