Phone Screen Question - Please help
Anonymous User
203
May 22, 2021
May 23, 2021

GIven an array A of size n, and another array T of size m.
For every value in T, find a pair of indexes (i,j), i <= j in array A , such that the given expression

abs ( abs ( Ai + A(i+1) + -----   + Aj ) - T) is minimum.

Comments (1)