DeShaw OA | Coding Round | Triangle Area | Email Campaign Tracker | Hackerland Road Repair
deshaw · Question · Posted Mar 2026
Question 1: Triangle Area Problem Statement: Given three sets of distinct coordinates that form a triangle, calculate the area of the triangle. At least one side of the triangle will be parallel to either the x-axis or the y-axis. Example: x = [0, 3, 0] y = [0, 5, 2] Aligned by index, the 3 coordinates are [0,0], [3,5], [0,2]. The base of the triangle is 2, and the height is 3. The area of a triangle is (base * ...
The full answer & interview discussion are available to premium members.
Log in Create a free account