Search⌘ K
AI Features

Erect the Fence

Erect the Fence asks you to return the trees on the perimeter of the shortest fence enclosing every given point, including trees that lie along the boundary.

Statement

You are given an array of points, trees, where trees[i] = [xᵢ, yᵢ] represents the ...