Skip to content

Commit e294f2f

Browse files
Fixed print output
1 parent 47e3fee commit e294f2f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

problems/src/heap/TheSkylineProblem.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ public static void main(String[] args) throws Exception {
5959
int[][] A = {{0, 30, 30}, {2, 9, 10}, {3, 7, 15}, {4, 8, 10}, {5, 12, 12}, {15, 20, 10}, {19, 24, 8}};
6060
//int[][] A = {{2,9,10}, {3,9,11}, {4,9,12}, {5,9,13}};
6161
List<int[]> result = new TheSkylineProblem().getSkyline(A);
62-
result.forEach(System.out::println);
62+
result.forEach(x -> {
63+
System.out.println(x[0] + " " + x[1]);
64+
});
6365
}
6466

6567
public List<int[]> getSkyline(int[][] buildings) {

0 commit comments

Comments
 (0)