18 lines
504 B
Java
18 lines
504 B
Java
package greedy;
|
|
|
|
import org.junit.Test;
|
|
|
|
import static org.junit.Assert.*;
|
|
|
|
public class FindMinArrowShotsTest {
|
|
|
|
@Test
|
|
public void findMinArrowShots() {
|
|
// int[][] points = {{10,16},{2,8},{1,6},{7,12}};
|
|
// int[][] points ={{1,2},{3,4},{4,5},{2,3}};
|
|
int[][] points = {{-2147483646,-2147483645},{2147483646,2147483647}};
|
|
FindMinArrowShots solution = new FindMinArrowShots();
|
|
int res=solution.findMinArrowShots(points);
|
|
System.out.println(res);
|
|
}
|
|
} |