Erect the Fence
Understand how to solve the Erect the Fence problem by identifying the convex hull of a set of points. Explore techniques to determine which points lie on the boundary to form the shortest fence enclosing all trees, applying key geometry and math concepts useful for coding interviews.
We'll cover the following...
We'll cover the following...
Statement
You are given an array of points, trees, where trees[i] = [xᵢ, yᵢ] represents the location of a tree ...