Skip to content

Commit cc6e0e1

Browse files
committed
refactor: fix clang formatting issues
1 parent 6d8f87b commit cc6e0e1

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/main/java/com/thealgorithms/strings/ValidParentheses.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ public final class ValidParentheses {
2020
private ValidParentheses() {
2121
}
2222

23-
private static final Map<Character, Character> BRACKET_PAIRS = Map.of(
24-
')', '(',
25-
'}', '{',
26-
']', '['
27-
);
23+
private static final Map<Character, Character> BRACKET_PAIRS = Map.of(')', '(', '}', '{', ']', '[');
2824

2925
/**
3026
* Checks if the input string has valid parentheses.

src/test/java/com/thealgorithms/strings/ValidParenthesesTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
import static org.junit.jupiter.api.Assertions.assertEquals;
44

5+
import java.util.stream.Stream;
56
import org.junit.jupiter.params.ParameterizedTest;
67
import org.junit.jupiter.params.provider.Arguments;
78
import org.junit.jupiter.params.provider.MethodSource;
89

9-
import java.util.stream.Stream;
10-
1110
public class ValidParenthesesTest {
1211

1312
@ParameterizedTest(name = "Input: \"{0}\" → Expected: {1}")

0 commit comments

Comments
 (0)