You are viewing a single comment's thread. Return to all comments →
HashSet myhash = new HashSet(); for (int i = 0; i < t; i++) { myhash.add(pair_left[i]+"#"+pair_right[i]); System.out.println(myhash.size()); }
it is right code ? but compiler show error me every time test case 5 failed
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 →
HashSet myhash = new HashSet(); for (int i = 0; i < t; i++) { myhash.add(pair_left[i]+"#"+pair_right[i]); System.out.println(myhash.size()); }
it is right code ? but compiler show error me every time test case 5 failed