leetle

Daily challenge for 2026-09-05

613. Maximize Array Value

You are given an array of integers nums. You can perform the following operation any number of times: choose any element and multiply it by -1. Your goal is to maximize the sum of the array. Return the maximum possible sum.

Example:
Input: nums = [-2, 3, -1]
Output: 6

Run this challenge interactively in Python or JavaScript when the app loads.