From a set of 2D points, pick four that form an axis-aligned rectangle with the largest area. Asked again and again in Waymo onsites and phone screens — with follow-ups on empty rectangles and rotated ones.
From a set of 2D points, pick four that form an axis-aligned rectangle with the largest area. Asked again and again in Waymo onsites and phone screens — with follow-ups on empty rectangles and rotated ones.
The discussion opens with the full question.