Add imports for Java solutions

This commit is contained in:
2023-10-06 03:25:12 -05:00
parent 9e0c58faff
commit 5a1efd2418
10 changed files with 42 additions and 12 deletions

View File

@@ -3,6 +3,9 @@
// Memory Usage: 39.7 MB
// Submitted: January 12th, 2021
import java.util.HashMap;
import java.util.Map;
class Solution {
public int[] twoSum(int[] nums, int target) {
Map<Integer, Integer> map = new HashMap<>();