Erect the Fence Leetcode Solution
Problem You are given an array trees where trees[i] = [x i , y i ] represents the location of a tree in the garden. You are asked to fence the entire garden using the minimum length of rope as it is expensive. The garden is …