Skip to content

Commit 65ca159

Browse files
authored
Merge branch 'TheAlgorithms:master' into Branch_Smooth_Sort
2 parents aed3358 + f279f9d commit 65ca159

File tree

3 files changed

+1
-18
lines changed

3 files changed

+1
-18
lines changed

.gitpod.dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM gitpod/workspace-java-21:2024-06-17-10-03-09
1+
FROM gitpod/workspace-java-21:2024-06-24-08-46-07
22

33
ENV LLVM_SCRIPT="tmp_llvm.sh"
44

spotbugs-exclude.xml

-9
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
<Match>
1818
<Bug pattern="DM_NEXTINT_VIA_NEXTDOUBLE" />
1919
</Match>
20-
<Match>
21-
<Bug pattern="NM_CLASS_NAMING_CONVENTION" />
22-
</Match>
2320
<Match>
2421
<Bug pattern="SIC_INNER_SHOULD_BE_STATIC" />
2522
</Match>
@@ -44,9 +41,6 @@
4441
<Match>
4542
<Bug pattern="INT_BAD_REM_BY_1" />
4643
</Match>
47-
<Match>
48-
<Bug pattern="NM_METHOD_NAMING_CONVENTION" />
49-
</Match>
5044
<Match>
5145
<Bug pattern="ICAST_IDIV_CAST_TO_DOUBLE" />
5246
</Match>
@@ -120,9 +114,6 @@
120114
<Match>
121115
<Bug pattern="CLI_CONSTANT_LIST_INDEX" />
122116
</Match>
123-
<Match>
124-
<Bug pattern="BED_BOGUS_EXCEPTION_DECLARATION" />
125-
</Match>
126117
<Match>
127118
<Bug pattern="CNC_COLLECTION_NAMING_CONFUSION" />
128119
</Match>

src/main/java/com/thealgorithms/stacks/DuplicateBrackets.java

-8
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// e.g.'
99
// ((a + b) + (c + d)) -> false
1010
// (a + b) + ((c + d)) -> true
11-
import java.util.Scanner;
1211
import java.util.Stack;
1312

1413
public final class DuplicateBrackets {
@@ -36,11 +35,4 @@ public static boolean check(String str) {
3635
}
3736
return false;
3837
}
39-
40-
public static void main(String[] args) throws Exception {
41-
Scanner sc = new Scanner(System.in);
42-
String str = sc.nextLine();
43-
System.out.println(check(str));
44-
sc.close();
45-
}
4638
}

0 commit comments

Comments
 (0)