MCPcopy Create free account
hub / github.com/algorithm-archivists/algorithm-archive / main

Function main

contents/graham_scan/code/go/graham.go:44–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42}
43
44func main() {
45 points := []point{{-5, 2}, {5, 7}, {-6, -12}, {-14, -14}, {9, 9},
46 {-1, -1}, {-10, 11}, {-6, 15}, {-6, -8}, {15, -9},
47 {7, -7}, {-2, -9}, {6, -5}, {0, 14}, {2, 8}}
48
49 fmt.Println("The points in the hull are:")
50 hull := grahamScan(points)
51 for _, p := range hull {
52 fmt.Println(p)
53 }
54}

Callers

nothing calls this directly

Calls 1

grahamScanFunction · 0.70

Tested by

no test coverage detected