โ† Dunzo questions

Sum of min and max of all subarrays

Filed under Dunzo

The question

Given an array of distinct elements, return the sum of the minimum and maximum values of all possible subarrays.

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

Related Dunzo questions

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