Say I have two numpy arrays of equal length:
a = np.array([1, 3, 5, 3, 2, 0])
b = np.array([1, 1, 2, 2, 4, 3])
Out of all of the i, j such that j >= i, how I can I find the i and j such that
a[i] + b[j]
is maximised?
Given my actual use-case, a tie is very unlikely, but if there is one, returning the smallest i and j would be OK.