← ALL NOTES
Array

3487. Maximum Unique Subarray Sum After Deletion

Given an array nums. You may delete any elements, then from what remains take a subarray with pairwise-distinct values. Find the maximum sum of such a subarray of unique values.

Loading…