From e3218ce6189a310ece69b0c846efb153eb97f3bc Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 4 Oct 2019 21:23:29 +0530 Subject: [PATCH] Add hackerrank problem on Hashmap to Contributors list --- Hackerrank/Hashmap.java | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Hackerrank/Hashmap.java diff --git a/Hackerrank/Hashmap.java b/Hackerrank/Hashmap.java new file mode 100644 index 0000000..4b81693 --- /dev/null +++ b/Hackerrank/Hashmap.java @@ -0,0 +1,30 @@ + +//Complete this code or write your own from scratch +import java.util.*; +import java.io.*; + +class Hashmap{ + public static void main(String []argh) + { + Scanner x = new Scanner(System.in); + int n=x.nextInt(); + x.nextLine(); + Map map = new HashMap(); + for(int i=0;i