fix: remove unnecessary statements
This commit is contained in:
parent
1af5babe4c
commit
f594c0c19d
|
|
@ -15,8 +15,6 @@ class Solution {
|
|||
public:
|
||||
static int wiggleMaxLength(const std::vector<int>& nums) {
|
||||
const int n = nums.size();
|
||||
if (n <= 1)
|
||||
return 1;
|
||||
int dp[2][1024]{{1}, {1}};
|
||||
for (int i = 1; i < n; ++i) {
|
||||
const int t = nums[i] - nums[i - 1];
|
||||
|
|
|
|||
Loading…
Reference in New Issue