We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 291363b commit 360f4bfCopy full SHA for 360f4bf
src/main/java/g0001_0100/s0051_n_queens/Solution.java
@@ -4,7 +4,6 @@
4
// #2024_11_11_Time_1_ms_(99.77%)_Space_44.8_MB_(61.16%)
5
6
import java.util.ArrayList;
7
-import java.util.LinkedList;
8
import java.util.List;
9
10
public class Solution {
@@ -52,7 +51,7 @@ void solve(
52
51
}
53
54
List<String> construct(char[][] board) {
55
- List<String> res = new LinkedList<>();
+ List<String> res = new ArrayList<>();
56
for (char[] chars : board) {
57
String s = new String(chars);
58
res.add(s);
0 commit comments