Given three sorted arrays
Cof 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
i.e. minimize | max(a,b,c) - min(a,b,c) |.
A : [ 1, 4, 5, 8, 10 ] B : [ 6, 9, 15 ] C : [ 2, 3, 6, 6 ]
Explanation: We get the minimum difference for a=5, b=6, c=6 as
| max(a,b,c) - min(a,b,c) | = |6-5| = 1.
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a doubt? Checkout Sample Codes for more details.