fix: remove unnecessary statements

This commit is contained in:
Eat-Swap 2022-07-04 11:42:36 +08:00
parent 1af5babe4c
commit f594c0c19d
Signed by: Eatswap
GPG Key ID: BE661106A1F3FA0B
1 changed files with 0 additions and 2 deletions

View File

@ -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];