---
title: "Discussion on \"LeetCode Daily Challenge-2163: Minimum Difference in Sums After Removal of Elements(Hard, Java, DP+priorityQueue+greedy)\" | Hashnode"
description: "Discussion on \"LeetCode Daily Challenge-2163: Minimum Difference in Sums After Removal of Elements(Hard, Java, DP+priorityQueue+greedy)\". TC O(n log n) SC O(n) using minHeap, maxHeap and DP"
url: "https://hashnode.com/posts/leetcode-daily-challenge-2163-minimum-difference-in-sums-after-removal-of-elementshard-java-dppriorityqueuegreedy/6879c39e8768b04af3a6ad99"
---

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

Discussion

# [LeetCode Daily Challenge-2163: Minimum Difference in Sums After Removal of Elements(Hard, Java, DP+priorityQueue+greedy)](https://huanganni.hashnode.dev/leetcode-daily-challenge-2163-minimum-difference-in-sums-after-removal-of-elementshard-java-dppriorityqueuegreedy?utm_source=hashnode&utm_medium=feed)

TC O(n log n) SC O(n) using minHeap, maxHeap and DP

Jul 18, 2025 · 6 min read · huanganni.hashnode.dev  
Read the article

-   [#array](https://hashnode.com/tag/array)
-   [#dynamic-programming](https://hashnode.com/tag/dynamic-programming)
-   [#heap](https://hashnode.com/tag/heap)
-   [#priority-queue](https://hashnode.com/tag/priority-queue)
-   [#java](https://hashnode.com/tag/java)
-   [#leetcode-solution](https://hashnode.com/tag/leetcode-solution)
-   [#leetcodedaily](https://hashnode.com/tag/leetcodedaily)
-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#leetcodehard](https://hashnode.com/tag/leetcodehard)
-   [#greedy](https://hashnode.com/tag/greedy)

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