Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a87e53d

Browse files
[LEET-3349] add 3349
1 parent 228e78f commit a87e53d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
package com.fishercoder.fourththousand;
22

3+
import static org.junit.jupiter.api.Assertions.assertFalse;
4+
import static org.junit.jupiter.api.Assertions.assertTrue;
5+
36
import com.fishercoder.solutions.fourththousand._3349;
7+
import java.util.Arrays;
48
import org.junit.jupiter.api.BeforeEach;
59
import org.junit.jupiter.api.Test;
610

7-
import java.util.Arrays;
8-
9-
import static org.junit.jupiter.api.Assertions.assertFalse;
10-
import static org.junit.jupiter.api.Assertions.assertTrue;
11-
1211
public class _3349Test {
1312
private _3349.Solution1 solution1;
1413

@@ -19,17 +18,18 @@ public void setup() {
1918

2019
@Test
2120
public void test1() {
22-
assertTrue(solution1.hasIncreasingSubarrays(Arrays.asList(2, 5, 7, 8, 9, 2, 3, 4, 3, 1), 3));
21+
assertTrue(
22+
solution1.hasIncreasingSubarrays(Arrays.asList(2, 5, 7, 8, 9, 2, 3, 4, 3, 1), 3));
2323
}
2424

2525
@Test
2626
public void test2() {
27-
assertFalse(solution1.hasIncreasingSubarrays(Arrays.asList(1, 2, 3, 4, 4, 4, 4, 5, 6, 7), 5));
27+
assertFalse(
28+
solution1.hasIncreasingSubarrays(Arrays.asList(1, 2, 3, 4, 4, 4, 4, 5, 6, 7), 5));
2829
}
2930

3031
@Test
3132
public void test3() {
3233
assertTrue(solution1.hasIncreasingSubarrays(Arrays.asList(5, 8, -2, -1), 2));
3334
}
34-
3535
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /