← Media.net questions

Subarray with minimum absolute sum difference to query

Filed under Media.net

The question

Given an array and multiple query values, find a subarray for each query where the absolute difference between its sum and the query value is minimized.

No write-up yet. Related questions below have one.

Related Media.net questions

Collected from public candidate posts and coding forums. Updated Nov 2026.