A magician has an array of spells called power, where power[i] represents the damage dealt by the spell at index
If a spell with damage power can be cast at most once.
Return the maximum possible total damage the magician can deal.
Constraints:
power.length
power[i]
A magician has an array of spells called power, where power[i] represents the damage dealt by the spell at index
If a spell with damage power can be cast at most once.
Return the maximum possible total damage the magician can deal.
Constraints:
power.length
power[i]