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 List
- Discussions
Java List
Java List
Sort by
recency
|
485 Discussions
|
Please Login in order to post a comment
Use stream
import java.io.; import java.util.; import java.text.; import java.math.; import java.util.regex.*; import java.util.ArrayList; import java.util.Arrays;
public class Solution {
}
my code: import java.io.; import java.util.;
public class Solution {
}
the sample test case is passed but all other test cases got failed
Scanner sc = new Scanner(System.in); int n = sc.nextInt();