I am now using divide and conquer algorithm to find maximum difference between two ordered elements(it means that A[i][j] − A[k][l] where k>i and l>j) in a two dimension array, like the below one:
[ 0, 3, 6, 4]
[ 9, 3, 1, 6]
[ 7, 8, 5, 6]
[ 1, 2, 3, 4]
So the result is A[1][2] − A[0][0] = 8 - 0 = 8 (not A[0][1] − A[0][0] = 9 - 0 = 9.
The most question are in a single dimensional array, like below question:
Divide and Conquer Algo to find maximum difference between two ordered elements
So how can I solve it in a two dimensional array by divide and conquer algorithm?
Thanks a lot!