Skip to content

Commit f273072

Browse files
authored
Update erect-the-fence.cpp
1 parent 38751f1 commit f273072

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

C++/erect-the-fence.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44
class Solution {
55
public:
66
vector<vector<int>> outerTrees(vector<vector<int>>& points) {
7-
const auto& orientation =
8-
[](const vector<int>& p,
9-
const vector<int>& q,
10-
const vector<int>& r) {
11-
return (q[0] - p[0]) * (r[1] - p[1]) -
12-
(q[1] - p[1]) * (r[0] - p[0]);
13-
};
7+
const auto& orientation = [](const vector<int>& p,
8+
const vector<int>& q,
9+
const vector<int>& r) {
10+
return (q[0] - p[0]) * (r[1] - p[1]) -
11+
(q[1] - p[1]) * (r[0] - p[0]);
12+
};
1413

1514
vector<vector<int>> hull;
1615
sort(points.begin(), points.end());

0 commit comments

Comments
 (0)