修改(0376.摆动序列.md):修改了逻辑小错误
This commit is contained in:
parent
40c06155f9
commit
5a2ff02b94
|
|
@ -174,7 +174,7 @@ public:
|
|||
```Java
|
||||
class Solution {
|
||||
public int wiggleMaxLength(int[] nums) {
|
||||
if (nums == null || nums.length <= 1) {
|
||||
if (nums.length <= 1) {
|
||||
return nums.length;
|
||||
}
|
||||
//当前差值
|
||||
|
|
|
|||
Loading…
Reference in New Issue