• + 0 comments

    It seems they have bug. 5th test is failing and the solution provided in Editorial was exactly the same code I had. Hackerrank should fix the issue on this problem.

    Set<String> listOfUsers = new HashSet<>();
            if (t>=1 && t<=100000){
                for (int counter = 0; counter < pair_left.length; counter++) {
                    listOfUsers.add(pair_left[counter] + " " + pair_right[counter]);
                    System.out.println(listOfUsers.size());
                }
            }