Skip to content

Commit d0edd44

Browse files
update 1249
1 parent fd5e21d commit d0edd44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/main/java/com/fishercoder/solutions/_1249.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
public class _1249 {
88
public static class Solution1 {
99
public String minRemoveToMakeValid(String s) {
10-
Stack<Character> stack = new Stack<>();
10+
Deque<Character> stack = new LinkedList<>();
1111
int leftParen = 0;
1212
int rightParen = 0;
1313
for (char c : s.toCharArray()) {

0 commit comments

Comments
 (0)