CodingEasy-Medium
Remove min and adjacent elements iteratively
Filed under Tally Solutions
The question
Given an array, repeatedly remove the minimum element and its adjacent elements in one step, add the minimum element to the running sum, and repeat until the array is empty. Return the total sum.
No write-up yet. Related questions below have one.
Related Tally Solutions questions
Collected from public candidate posts and coding forums. Updated Nov 2026.