You are given an integer array nums (k.
The score of a subarray (i, j) is defined as nums[i], nums[i + 1], nums[j]
A subarray (i, j) is considered good if
Return the maximum possible score of a good subarray.
Constraints:
nums.length
nums[i]
k nums.length
You are given an integer array nums (k.
The score of a subarray (i, j) is defined as nums[i], nums[i + 1], nums[j]
A subarray (i, j) is considered good if
Return the maximum possible score of a good subarray.
Constraints:
nums.length
nums[i]
k nums.length