From 5b00cc2a7332b69752322ef280a302c95397fcd2 Mon Sep 17 00:00:00 2001 From: Hriday-A Date: Tue, 21 Apr 2026 18:13:15 -0500 Subject: [PATCH] Completed Competitive-Coding-2 --- Problem1.java | 15 +++++++++++++++ Problem2.java | 25 +++++++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/Problem1.java b/Problem1.java index e69de29b..212734e4 100644 --- a/Problem1.java +++ b/Problem1.java @@ -0,0 +1,15 @@ +class Solution { + public int[] twoSum(int[] nums, int target) { + int val; + HashMap map = new HashMap<>(); + for (int i =0;i