< Ace Coding /> 🚀
ReplyQuestion: Maximum Sum Score of an Array
You are given a 0-indexed integer array nums of length n. The sum score of nums at an index i (where 0 <= i < n) is defined as the maximum of:
• The sum of the first i + 1 elements of nums.
• The sum of the last n - i elements of nums.
Your task is to retuLink
click to show
2 · 261 · click to show