Skip to content

Commit 3779afb

Browse files
committed
Update the-skyline-problem.cpp
1 parent e184bfe commit 3779afb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

C++/the-skyline-problem.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class Solution2 {
5656
enum {start, end, height};
5757

5858
vector<pair<int, int>> getSkyline(vector<vector<int>>& buildings) {
59-
const auto intervals = move(ComputeSkylineInInterval(buildings, 0, buildings.size()));
59+
const auto intervals = ComputeSkylineInInterval(buildings, 0, buildings.size());
6060

6161
vector<pair<int, int>> res;
6262
int last_end = -1;
@@ -81,8 +81,8 @@ class Solution2 {
8181
buildings.cbegin() + right_endpoint};
8282
}
8383
int mid = left_endpoint + ((right_endpoint - left_endpoint) / 2);
84-
auto left_skyline = move(ComputeSkylineInInterval(buildings, left_endpoint, mid));
85-
auto right_skyline = move(ComputeSkylineInInterval(buildings, mid, right_endpoint));
84+
auto left_skyline = ComputeSkylineInInterval(buildings, left_endpoint, mid);
85+
auto right_skyline = ComputeSkylineInInterval(buildings, mid, right_endpoint);
8686
return MergeSkylines(left_skyline, right_skyline);
8787
}
8888

0 commit comments

Comments
 (0)