Simon Leung
asked on
Data structure (stack)
Given 5 points foming a regular pentagon together with another point at the center of the pentagon (altogeher 6 points), if you run Graham Scan to find the convex hull of these 6 points, you will do 11 pushes and 7 pops.
I do not get why there is 11 pushes and 7 pops in this case. Can someone explaine it? Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.