Available question text
Given an array of length 3n, remove exactly n elements so the remaining 2n elements (split into the first n and last n) have the smallest possible difference between their sums. The challenge is to choose which elements to remove, typically solved by scanning possible middle split points and using heap-based prefix/suffix greedy computations to precompute the best n-element sums on each side and minimize their difference.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Amazon
Leetcode 2163. Minimum Difference in Sums After Removal of Elements
Reported Jan 4, 2025 · 1 source report
MID_LEVEL
Source snapshot: Nov 12, 2026
View source