From b9863f7cd72c69dbe352d15c976f4997de440ae3 Mon Sep 17 00:00:00 2001 From: Manassa2000 Date: Thu, 23 Oct 2025 20:44:50 -0400 Subject: [PATCH] Competitive-Coding-2 --- Problem1.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Problem1.java b/Problem1.java index e69de29b..68c7d009 100644 --- a/Problem1.java +++ b/Problem1.java @@ -0,0 +1,19 @@ +//Time Complexity: O(n) +//Space Complexity: O(n) +// Did this code successfully run on Leetcode :yes +// Any problem you faced while coding this :no + +import java.util.HashMap; +class Solution { + public int[] twoSum(int[] nums, int target) { + HashMap map = new HashMap<>(); + for(int i=0;i