MathWorksCoding·85 minMembers
Resource Allocation / Balancing Teams Equal Sum
Members only
Given two arrays where zeros represent empty slots, fill every zero with a strictly positive integer so both arrays have the same total sum. Return the minimum achievable equal sum, or `-1` if equaliz...
SWE
array
greedy
math
easy
Frequency
Medium
Last asked
2025-11-04
Stage
oa
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
