aboutsummaryrefslogtreecommitdiff
path: root/longest_arithmetic_subseq.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'longest_arithmetic_subseq.cpp')
-rw-r--r--longest_arithmetic_subseq.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/longest_arithmetic_subseq.cpp b/longest_arithmetic_subseq.cpp
index 5b661db..5cc91a7 100644
--- a/longest_arithmetic_subseq.cpp
+++ b/longest_arithmetic_subseq.cpp
@@ -15,7 +15,7 @@ class Solution {
public:
int longestArithmeticSeqLength(vector<int> &nums) {
int n = nums.size(), ans = 0;
- vvd(int) dp(n, vector<int>(n, 1));
+ vvd dp(n, vector<int>(n, 1));
for (int i = 1; i < n - 1; ++i)
for (int j = i + 1; j < n; ++j) {
for (int k = i - 1; k >= 0; k--)