There was no explanation for the SkylineProblem algorithm.

Added and explanation to SkylineProblem.
This commit is contained in:
rmakynen
2018-10-08 17:09:50 +03:00
parent 2c10f63f7a
commit 78e509b373

View File

@ -1,3 +1,9 @@
/**
* Given n rectangular buildings in a 2-dimensional city, computes the skyline of these buildings,
* eliminating hidden lines. The main task is to view buildings from a side and remove all sections
* that are not visible.
* Source for explanation: https://www.geeksforgeeks.org/the-skyline-problem-using-divide-and-conquer-algorithm/
*/
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Scanner;