< 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 retuPhoto
click to show
1 Β· 270 Β· click to show