Minimize the absolute difference Problem - Need Solution
Имам нужда от помощ при решаване на проблема с минимизирането на абсолютната разлика InterviewBit.com
Given three sorted arrays A
, B
and C
of not necessarily same sizes.
Calculate the minimum absolute difference between the maximum and minimum number from the triplet a, b, c such that a, b, c belongs arrays A
, B
, C
respectively.
Example :
Input:
A : [ 1, 4, 5, 8, 10 ]
B : [ 6, 9, 15 ]
C : [ 2, 3, 6, 6 ]
Output:
1