@@ -41,7 +41,7 @@ public void run() {
41
41
/**
42
42
* Adds a building with the given left, height, and right values to the
43
43
* buildings list.
44
- *
44
+ *
45
45
* @param left The left x-coordinate of the building.
46
46
* @param height The height of the building.
47
47
* @param right The right x-coordinate of the building.
@@ -52,7 +52,7 @@ public void add(int left, int height, int right) {
52
52
53
53
/**
54
54
* Prints the skyline as a sequence of coordinates and heights.
55
- *
55
+ *
56
56
* @param skyline The list of {@link Skyline} objects representing the skyline.
57
57
*/
58
58
public void print (ArrayList <Skyline > skyline ) {
@@ -71,7 +71,7 @@ public void print(ArrayList<Skyline> skyline) {
71
71
/**
72
72
* Computes the skyline for a range of buildings using the divide-and-conquer
73
73
* approach.
74
- *
74
+ *
75
75
* @param start The starting index of the buildings to process.
76
76
* @param end The ending index of the buildings to process.
77
77
* @return A list of {@link Skyline} objects representing the computed skyline.
@@ -94,7 +94,7 @@ public ArrayList<Skyline> findSkyline(int start, int end) {
94
94
95
95
/**
96
96
* Merges two skylines (sky1 and sky2) into one combined skyline.
97
- *
97
+ *
98
98
* @param sky1 The first skyline list.
99
99
* @param sky2 The second skyline list.
100
100
* @return A list of {@link Skyline} objects representing the merged skyline.
@@ -161,7 +161,7 @@ public class Skyline {
161
161
162
162
/**
163
163
* Constructor for the {@code Skyline} class.
164
- *
164
+ *
165
165
* @param coordinates The x-coordinate of the skyline point.
166
166
* @param height The height of the skyline at the given coordinate.
167
167
*/
@@ -182,7 +182,7 @@ public class Building {
182
182
183
183
/**
184
184
* Constructor for the {@code Building} class.
185
- *
185
+ *
186
186
* @param left The left x-coordinate of the building.
187
187
* @param height The height of the building.
188
188
* @param right The right x-coordinate of the building.
@@ -196,7 +196,7 @@ public Building(int left, int height, int right) {
196
196
197
197
/**
198
198
* The main method that runs the skyline problem solution.
199
- *
199
+ *
200
200
* @param args Command-line arguments (not used).
201
201
*/
202
202
public static void main (String [] args ) {
0 commit comments