Skip to content

Commit efeb394

Browse files
committed
Fixed style
1 parent cb2d535 commit efeb394

File tree

1 file changed

+6
-3
lines changed
  • src/test/java/g3701_3800/s3734_lexicographically_smallest_palindromic_permutation_greater_than_target

1 file changed

+6
-3
lines changed

src/test/java/g3701_3800/s3734_lexicographically_smallest_palindromic_permutation_greater_than_target/SolutionTest.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ void lexPalindromicPermutation12() {
9595
// Branch: l == r with available character
9696
String target = "a";
9797
int[] freq = new int[26];
98-
freq[0] = 1; // 'a' has frequency 1
98+
// 'a' has frequency 1
99+
freq[0] = 1;
99100
char[] ans = new char[1];
100101

101102
boolean result = new Solution().func(0, target, ans, 0, 0, freq, false);
@@ -108,13 +109,15 @@ void lexPalindromicPermutation13() {
108109
// Branch: end = true, finds char with freq > 1
109110
String target = "ab";
110111
int[] freq = new int[26];
111-
freq[0] = 2; // 'a' can form a pair
112+
// 'a' can form a pair
113+
freq[0] = 2;
112114
freq[1] = 0;
113115
char[] ans = new char[2];
114116

115117
boolean result = new Solution().func(1, target, ans, 0, 1, freq, true);
116118
assertThat(result, anyOf(equalTo(true), equalTo(false)));
117-
assertThat(freq[0], equalTo(2)); // Frequency restored
119+
// Frequency restored
120+
assertThat(freq[0], equalTo(2));
118121
}
119122

120123
@Test

0 commit comments

Comments
 (0)