Is there any Algorithm for this ?

Revision en1, by spakk9, 2020-06-26 14:49:07
Suppose we are given two increasing arrays A and B , we need to find max((a[j]-a[i-1] )- (b[j]-b[i-1])) , where j>=i .

Can we solve it in better than O(n^2) time complexity . If so , please give me any Hint .


Tags #c++, #algorithms, #arrays, #help

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English spakk9 2020-06-26 14:49:07 266 Initial revision (published)