👩💻 Join our community of thousands of amazing developers!

You are given m arrays, where each array is sorted in ascending order. You can pick up two integers from two different arrays (each array picks one) and calculate the distance. We define the distance between two integers a and b to be their absolute difference abs(a-b). URL: https://leetcode.com/problems/maximum-distance-in-arrays/ My solution: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 class Solution { public int maxDistance(List<List<Integer>> arrays) { if (arrays.size()...