• + 1 comment

    Is there any error in this code as one last test case is failing?

    Set<String> mySet = new HashSet<>();
    for(int i = 0; i < t; i++) {
    	mySet.add(pair_left[i] + " " + pair_right[i]);
    	System.out.println(mySet.size());
    }