← ALL NOTES
Array

3623. Count Number of Trapezoids I

Given points in the plane. Find the number of trapezoids with horizontal parallel sides: two vertices on one horizontal line and two on another (two distinct lines). Modulo 1e9+7.

Loading…