Skip to content

Commit 360f4bf

Browse files
authored
Improved task 51
1 parent 291363b commit 360f4bf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/g0001_0100/s0051_n_queens/Solution.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// #2024_11_11_Time_1_ms_(99.77%)_Space_44.8_MB_(61.16%)
55

66
import java.util.ArrayList;
7-
import java.util.LinkedList;
87
import java.util.List;
98

109
public class Solution {
@@ -52,7 +51,7 @@ void solve(
5251
}
5352

5453
List<String> construct(char[][] board) {
55-
List<String> res = new LinkedList<>();
54+
List<String> res = new ArrayList<>();
5655
for (char[] chars : board) {
5756
String s = new String(chars);
5857
res.add(s);

0 commit comments

Comments
 (0)