Problem 571 · Easy

Maximum Distance in Arrays

Find the maximum distance between two elements from different arrays, where distance is the absolute difference between elements from two different rows.

Open the interactive visualisation