Skip to content

Commit 5a2ff02

Browse files
committed
修改(0376.摆动序列.md):修改了逻辑小错误
1 parent 40c0615 commit 5a2ff02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

problems/0376.摆动序列.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public:
174174
```Java
175175
class Solution {
176176
public int wiggleMaxLength(int[] nums) {
177-
if (nums == null || nums.length <= 1) {
177+
if (nums.length <= 1) {
178178
return nums.length;
179179
}
180180
//当前差值

0 commit comments

Comments
 (0)