Skip to content

Commit ee69b39

Browse files
update 1732
1 parent dfc1c0e commit ee69b39

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package com.fishercoder.secondthousand;
2+
3+
import static org.junit.jupiter.api.Assertions.assertEquals;
4+
5+
import com.fishercoder.solutions.secondthousand._1732;
6+
import org.junit.jupiter.api.BeforeEach;
7+
import org.junit.jupiter.api.Test;
8+
9+
public class _1732Test {
10+
private _1732.Solution1 solution1;
11+
private static int[] nums;
12+
13+
@BeforeEach
14+
public void setup() {
15+
solution1 = new _1732.Solution1();
16+
}
17+
18+
@Test
19+
public void test1() {
20+
nums =
21+
new int[] {
22+
44, 32, -9, 52, 23, -50, 50, 33, -84, 47, -14, 84, 36, -62, 37, 81, -36, -85,
23+
-39, 67, -63, 64, -47, 95, 91, -40, 65, 67, 92, -28, 97, 100, 81
24+
};
25+
assertEquals(781, solution1.largestAltitude(nums));
26+
}
27+
}

0 commit comments

Comments
 (0)