mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-09 03:34:02 +08:00
修改(0376.摆动序列.md):修改了逻辑小错误
This commit is contained in:
@ -174,7 +174,7 @@ public:
|
|||||||
```Java
|
```Java
|
||||||
class Solution {
|
class Solution {
|
||||||
public int wiggleMaxLength(int[] nums) {
|
public int wiggleMaxLength(int[] nums) {
|
||||||
if (nums == null || nums.length <= 1) {
|
if (nums.length <= 1) {
|
||||||
return nums.length;
|
return nums.length;
|
||||||
}
|
}
|
||||||
//当前差值
|
//当前差值
|
||||||
|
Reference in New Issue
Block a user