Movatterモバイル変換


[0]ホーム

URL:


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

Commit3a1bfc6

Browse files
fix build
1 parent6333593 commit3a1bfc6

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed
Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
packagecom.fishercoder;
22

3-
importcom.fishercoder.common.classes.Interval;
43
importcom.fishercoder.solutions._436;
54
importorg.junit.BeforeClass;
65
importorg.junit.Test;
@@ -15,19 +14,21 @@ public static void setup() {
1514

1615
@Test
1716
publicvoidtest1() {
18-
Interval[]intervals =newInterval[3];
19-
intervals[0] =newInterval(3,4);
20-
intervals[1] =newInterval(2,3);
21-
intervals[2] =newInterval(1,2);
17+
int[][]intervals =newint[][]{
18+
{3,4},
19+
{2,3},
20+
{1,2}
21+
};
2222
solution1.findRightInterval(intervals);
2323
}
2424

2525
@Test
2626
publicvoidtest2() {
27-
Interval[]intervals =newInterval[3];
28-
intervals[0] =newInterval(1,4);
29-
intervals[1] =newInterval(2,3);
30-
intervals[2] =newInterval(3,4);
27+
int[][]intervals =newint[][]{
28+
{1,4},
29+
{2,3},
30+
{3,4}
31+
};
3132
solution1.findRightInterval(intervals);
3233
}
3334
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp