---
title: "Discussion on \"LeetCode 1695-Maximum Erasure Value(Med, Java, O(n))\" | Hashnode"
description: "Discussion on \"LeetCode 1695-Maximum Erasure Value(Med, Java, O(n))\". Problem Description\n\n1695. Maximum Erasure Value\n\nThis 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 ..."
url: "https://hashnode.com/posts/leetcode-1695-maximum-erasure-valuemed-java-on/687fa9dc179cdbbf6a7f3846"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [LeetCode 1695-Maximum Erasure Value(Med, Java, O(n))](https://huanganni.hashnode.dev/leetcode-1695-maximum-erasure-valuemed-java-on?utm_source=hashnode&utm_medium=feed)

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 ...

Jul 22, 2025 · 3 min read · huanganni.hashnode.dev  
Read the article

-   [#weekly-contest-220](https://hashnode.com/tag/weekly-contest-220)
-   [#leetcode-medium](https://hashnode.com/tag/leetcode-medium)
-   [#daily-leetcode-challenge](https://hashnode.com/tag/daily-leetcode-challenge)
-   [#java](https://hashnode.com/tag/java)
-   [#array](https://hashnode.com/tag/array)
-   [#hash-table](https://hashnode.com/tag/hash-table)
-   [#sliding-window](https://hashnode.com/tag/sliding-window)

## Written by

[Anni Huang](https://hashnode.com/@HuangAnni)

@HuangAnni · Singapore

  
[View profile](https://hashnode.com/@HuangAnni)

LLM Training Operation Specialist @ ByteDance | Ex-Master of IT in Business (AI track) at SMU

I’m Anni Huang, an AI researcher-in-training currently at ByteDance, specializing in LLM training operations with a coding focus. I bridge the gap between engineering execution and model performance, ensuring the quality, reliability, and timely delivery of large-scale training projects.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
