We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f780c5e commit 3a16a4fCopy full SHA for 3a16a4f
contents/graham_scan/code/rust/graham_scan
3.98 MB
contents/graham_scan/code/rust/graham_scan.rs
@@ -19,7 +19,7 @@ fn graham_scan(mut points: Vec<Point>) -> Vec<Point> {
19
sort_based_on_lowest_coordinate(&mut points);
20
21
// Take ownership of the pivot point
22
- let pivot: Point = points.remove(0);
+ let pivot = points.remove(0);
23
24
// Sort all points based on the angle between the pivot point and itself
25
&mut points
0 commit comments