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,10 @@
// Memory Usage: 39.1 MB
// Submitted: January 14th, 2021
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
class Solution {
public int longestStrChain(String[] words) {
Map<String, Integer> chain = new HashMap<String, Integer>();