O((m*n)^2 * nlog(m)), :
min <- INFINITY
For each 2 numbers in different rows, let them be a,b
for each other row:
check if there is a number between a and b
if there is a matching number in every other row:
min <- min{min,|a-b|}
:
a b O(logm)
O((n*m)^2) a, b.
, , , , "" ( [a, b]) , "" .
: , .