From f594c0c19db9ea442548bcecaa6e2a1c952239d2 Mon Sep 17 00:00:00 2001 From: Eat-Swap Date: Mon, 4 Jul 2022 11:42:36 +0800 Subject: [PATCH] fix: remove unnecessary statements --- cpp/2207/220703.cpp | 2 -- 1 file changed, 2 deletions(-) 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];