File tree 3 files changed +1
-18
lines changed
src/main/java/com/thealgorithms/stacks
3 files changed +1
-18
lines changed Original file line number Diff line number Diff line change 1
- FROM gitpod/workspace-java-21:2024-06-17-10-03-09
1
+ FROM gitpod/workspace-java-21:2024-06-24-08-46-07
2
2
3
3
ENV LLVM_SCRIPT="tmp_llvm.sh"
4
4
Original file line number Diff line number Diff line change 17
17
<Match >
18
18
<Bug pattern =" DM_NEXTINT_VIA_NEXTDOUBLE" />
19
19
</Match >
20
- <Match >
21
- <Bug pattern =" NM_CLASS_NAMING_CONVENTION" />
22
- </Match >
23
20
<Match >
24
21
<Bug pattern =" SIC_INNER_SHOULD_BE_STATIC" />
25
22
</Match >
44
41
<Match >
45
42
<Bug pattern =" INT_BAD_REM_BY_1" />
46
43
</Match >
47
- <Match >
48
- <Bug pattern =" NM_METHOD_NAMING_CONVENTION" />
49
- </Match >
50
44
<Match >
51
45
<Bug pattern =" ICAST_IDIV_CAST_TO_DOUBLE" />
52
46
</Match >
120
114
<Match >
121
115
<Bug pattern =" CLI_CONSTANT_LIST_INDEX" />
122
116
</Match >
123
- <Match >
124
- <Bug pattern =" BED_BOGUS_EXCEPTION_DECLARATION" />
125
- </Match >
126
117
<Match >
127
118
<Bug pattern =" CNC_COLLECTION_NAMING_CONFUSION" />
128
119
</Match >
Original file line number Diff line number Diff line change 8
8
// e.g.'
9
9
// ((a + b) + (c + d)) -> false
10
10
// (a + b) + ((c + d)) -> true
11
- import java .util .Scanner ;
12
11
import java .util .Stack ;
13
12
14
13
public final class DuplicateBrackets {
@@ -36,11 +35,4 @@ public static boolean check(String str) {
36
35
}
37
36
return false ;
38
37
}
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
- }
46
38
}
You can’t perform that action at this time.
0 commit comments