MathWorksCoding·60 minMembers
Minimum-Cost Array Reduction
Members only
Repeatedly remove two numbers, insert their sum, and pay that sum as the operation cost. Return the minimum total cost to reduce the array to one number.
SWE
heap
greedy
easy
Frequency
Single report
Last asked
2026-01-01
Stage
tech-screen
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
