mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-07 01:35:16 +08:00
There was no explanation for the SkylineProblem algorithm.
Added and explanation to SkylineProblem.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user