Skip to content

Commit fb09ca0

Browse files
committed
Update convex_hull.hpp
1 parent 628f062 commit fb09ca0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cp-algo/geometry/convex_hull.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace cp_algo::geometry {
1919
for(auto it: std::views::drop(r, 1)) {
2020
while(size(hull) >= base + 1) {
2121
point a = hull.back();
22-
if(point::ccw(it - a, *(end(hull) - 2) - a)) {
22+
if(point::ccw(it - a, end(hull)[-2] - a)) {
2323
break;
2424
} else {
2525
hull.pop_back();

0 commit comments

Comments
 (0)