624. Maximum Distance in Arrays

Given m sorted arrays, find the maximum absolute difference between any two elements from different arrays. Return the maximum |arr1[i] - arr2[j]| where arr1 and arr2 are from different arrays.

Examples
Input: [[1,2,3],[4,5],[1,2,3]]
Output: 4
Hints
Related Problems

624. Maximum Distance in Arrays

Given `m` sorted arrays, find the maximum absolute difference between any two elements from different arrays. Return the maximum `|arr1[i] - arr2[j]|` where arr1 and arr2 are from different arrays.