回答編集履歴

2

修正ミス、)) を補う

2020/03/17 14:35

投稿

xebme
xebme

スコア1090

test CHANGED
@@ -102,7 +102,7 @@
102
102
 
103
103
  : buff.stream()
104
104
 
105
- .flatMap(b -> line.stream().map(c -> Stream.concat(b.stream(),Stream.of(c)).collect(Collectors.toList())
105
+ .flatMap(b -> line.stream().map(c -> Stream.concat(b.stream(),Stream.of(c)).collect(Collectors.toList())))
106
106
 
107
107
  .collect(Collectors.toList());
108
108
 

1

Stream.concat()に修正

2020/03/17 14:34

投稿

xebme
xebme

スコア1090

test CHANGED
@@ -102,7 +102,7 @@
102
102
 
103
103
  : buff.stream()
104
104
 
105
- .flatMap(b -> line.stream().map(c -> {List<Character>l = new ArrayList<>(b);l.add(c);return l;}))
105
+ .flatMap(b -> line.stream().map(c -> Stream.concat(b.stream(),Stream.of(c)).collect(Collectors.toList())
106
106
 
107
107
  .collect(Collectors.toList());
108
108