Your question is Compute Convex Hull Boundary. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Given an array of 2D integer points points, where each point is [x, y], return all points that lie on the boundary of the convex hull of the set. Include collinear points that lie on the hull boundary. The output may be returned in any order, but each boundary point should appear only once.
def convex_hull(points):