We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Java
- Data Structures
- Java Hashset
- Discussions
Java Hashset
Java Hashset
Sort by
recency
|
363 Discussions
|
Please Login in order to post a comment
All tests passed...
Hi guys. This is my solution but it is failing on the 5th test case. Could anyone tell me where I am going wrong?
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.
Scanner s = new Scanner(System.in); int t = s.nextInt();
If you got a problem with the test case 5 try with lexicographic order: