diff --git a/cpp/2207/220703.cpp b/cpp/2207/220703.cpp index c615ce1..afa906b 100644 --- a/cpp/2207/220703.cpp +++ b/cpp/2207/220703.cpp @@ -15,8 +15,6 @@ class Solution { public: static int wiggleMaxLength(const std::vector& 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];