There are too many cables under your table, and you want to tidy them. You designed a simple cabling scheme: There are \(n\) cables, each cable is a line in form of \(y = k_i*x + b_i\), your table is the region between \(x = x_1\) and \(x = x_2\). If any two cables intersect on your table region (not include the edges), your table is not tidy and you need to design another scheme.
More formally, there are \(n\) lines in form of \(y = k_i*x + b_i\), if there are two lines intersect on \((x_p, y_p)\), and \(x_1 < x_p < x_2\), then the scheme need be redesigned.
You want to know whether you need to redesign the scheme.