[LeetCode] 1330. Reverse Subarray To Maximize Array Value 翻转子数组得到最大的数组值

You are given an integer array nums. The value of this array is defined as the sum of |nums[i] - nums[i + 1]| for all 0 <= i < nums.length - 1. You ar
posted @ 2023-02-14 11:14  Grandyang  阅读(108)  评论(0编辑  收藏  举报
Fork me on GitHub