Search⌘ K
AI Features

Erect the Fence

Explore how to find the shortest fence enclosing given points by computing their convex hull. Understand geometric concepts and implement efficient algorithms to identify trees lying on the fence boundary.

Statement

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