From 0d9fde05ea8ed878a95099d7e86a7bcca1144cc4 Mon Sep 17 00:00:00 2001 From: FATEMA VAJIHEE <64741734+Fatema110@users.noreply.github.com> Date: Wed, 28 Oct 2020 11:24:17 +0530 Subject: [PATCH] Create Two sum --- Two sum | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Two sum diff --git a/Two sum b/Two sum new file mode 100644 index 0000000..ceaf4d6 --- /dev/null +++ b/Two sum @@ -0,0 +1,31 @@ + + +class Solution { + public int[] twoSum(int[] nums, int target) { + Map num_map = new HashMap(); + + for(int i=0; i