回答編集履歴
1
コードの間違いを訂正
test
CHANGED
@@ -124,7 +124,7 @@
|
|
124
124
|
|
125
125
|
static List<Integer> anotherRandomIndices(int n) {
|
126
126
|
|
127
|
-
List<Integer> list = IntStream.range(0,
|
127
|
+
List<Integer> list = IntStream.range(0, n).boxed().collect(Collectors.toList());
|
128
128
|
|
129
129
|
Collections.shuffle(list);
|
130
130
|
|