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.
// the solution by Shreyank DK
class Solution{
public static void main(String []argh)
{
Scanner sc = new Scanner(System.in);
int n=sc.nextInt();
sc.nextLine();
Map List = new HashMap<>();
for(int i=0;i
Java Map
You are viewing a single comment's thread. Return to all comments →
import java.io.; import java.util.; import java.util.Map;
// the solution by Shreyank DK class Solution{ public static void main(String []argh) { Scanner sc = new Scanner(System.in); int n=sc.nextInt(); sc.nextLine(); Map List = new HashMap<>(); for(int i=0;i
}