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