I was solving this SPOJ problem which uses concept of convex hull.
Go through the above link to understand the question completely
If this problem is changed a little bit and we are given a point say A(x,y) and asked to find maximum number of fences only around that particular point .
My Approach
(Correct me if i am wrong)
1.Find the maximum number of non-intersecting ,non-touching convex hulls that can be formed from N points(given in the problem)
2.Find the number of hulls for which the the point A lies inside it.
Please help me how to approach this problem ??
P.S. :- I couldn't find any similar problem so that i could validate my approach . If you find any similar problem do attach below.
Thanks.