Erect the Fence
Explore how to enclose a set of points representing trees on a 2D plane by constructing the shortest possible fence using the convex hull method. Understand the geometric principles behind the problem and develop a solution that returns the fence perimeter coordinates. This lesson helps you apply math and geometry patterns to tackle coding interview questions involving spatial data.
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 ...