Data Structures & AlgorithmsHardICPC regional · geometry

Problem: Which algorithm finds the convex hull of n points in O(n log n) by sorting and building lower and upper chains?

  1. A. Kruskal's algorithm
  2. B. Andrew's monotone chain
  3. C. Gale-Shapley
  4. D. Tarjan's SCC

Correct answer: B. Andrew's monotone chain

Sorting points by x and scanning with a stack builds the hull in O(n log n) total.

More Coding Interview Problems questions

Exams that ask this topic