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
|
360 Discussions
|
Please Login in order to post a comment
Scanner s = new Scanner(System.in); int t = s.nextInt();
If you got a problem with the test case 5 try with lexicographic order:
Test case 5 has failed in my case.
This is my code that I wrote:- import java.io.; import java.util.; import java.text.; import java.math.; import java.util.regex.*;
public class Solution { public static void main(String[] args) { Scanner s = new Scanner(System.in); int t = s.nextInt(); String [] pair_left = new String[t]; String [] pair_right = new String[t];
}
Is there any error in this code as one last test case is failing?
/@Author : Rehan/ Set hashSet = new HashSet<>();