diff --git a/src/main/java/g0001_0100/s0051_n_queens/Solution.java b/src/main/java/g0001_0100/s0051_n_queens/Solution.java index 8a26add99..0e518da82 100644 --- a/src/main/java/g0001_0100/s0051_n_queens/Solution.java +++ b/src/main/java/g0001_0100/s0051_n_queens/Solution.java @@ -4,7 +4,6 @@ // #2024_11_11_Time_1_ms_(99.77%)_Space_44.8_MB_(61.16%) import java.util.ArrayList; -import java.util.LinkedList; import java.util.List; public class Solution { @@ -52,7 +51,7 @@ void solve( } List construct(char[][] board) { - List res = new LinkedList<>(); + List res = new ArrayList<>(); for (char[] chars : board) { String s = new String(chars); res.add(s);