LeetCode 1695-Maximum Erasure Value(Med, Java, O(n))
Jul 22, 2025 · 3 min read · Problem Description 1695. Maximum Erasure Value This problem asks us to find the maximum sum of a contiguous subarray where all elements are unique (no duplicates). We need to identify the subarray with unique elements that has the largest sum and ...
Join discussion