Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Sort the arrays, then compute the maximum difference between two consecutive elements for horizontal cuts and vertical cuts.
The answer is the product of these maximum values in horizontal cuts and vertical cuts.