0

Problem - Given three sorted arrays find combinations which are closest to each other.
example -
i/p - 3,8,18 7,11,16 10,15,19
o/p - (8,7,10)
i/p - 2,2,6 11,15,15 8,8,18
o/p - (6,11,8)
Kindly review this scala code and suggest improvements
import scala.math.Ordering._
object NearestMa...