109 - SCUD Busters

Basically this problem asks you to implement a convex hull algorithm.

I implement Andrew’s Monotone Chain, a variant of Graham Scan, because it is not required to handle polar angle, which can be quite tricky. A reference solution is here.

Creative Commons License
This blog by Che-Liang Chiou is licensed under a Creative Commons Attribution 4.0 International License.