Solución
solution.tsTypeScript
import java.util.*;
import java.util.stream.Collectors;
public class Solution {
public Map<Integer, List<String>> groupByLength(String[] words) {
// Escribe tu solución aquí
return Arrays.stream(words)
.collect(Collectors.groupingBy(
String::length
));
}
}0respuestas