Closest Subarray Sum to Target.
Unlock detailed company stats for this questionUpgrade
You are given an array ‘A’ of N numbers and a number T.Find a segment (i.. j) of A such that | |Ai +A(i+1) +...+Aj| -T| is minimum. You have to answer this for M different values of T.
Community answers
No answers contributed by the community yet.
Related questions
Explain how to find a target sum in an array.Related courses

Course

Course
Course
