8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd5e21d commit d0edd44Copy full SHA for d0edd44
src/main/java/com/fishercoder/solutions/_1249.java
@@ -7,7 +7,7 @@
7
public class _1249 {
8
public static class Solution1 {
9
public String minRemoveToMakeValid(String s) {
10
- Stack<Character> stack = new Stack<>();
+ Deque<Character> stack = new LinkedList<>();
11
int leftParen = 0;
12
int rightParen = 0;
13
for (char c : s.toCharArray()) {
0 commit comments