aboutsummaryrefslogtreecommitdiff
path: root/max_length_repeated_subarr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'max_length_repeated_subarr.cpp')
-rw-r--r--max_length_repeated_subarr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/max_length_repeated_subarr.cpp b/max_length_repeated_subarr.cpp
index 59ab0bd..6e8ef68 100644
--- a/max_length_repeated_subarr.cpp
+++ b/max_length_repeated_subarr.cpp
@@ -4,7 +4,7 @@ class Solution {
public:
int findLength(vector<int> &nums1, vector<int> &nums2) {
int m = nums1.size(), n = nums2.size();
- vvd(int) dp(m + 1, vector<int>(n + 1));
+ vvd dp(m + 1, vector<int>(n + 1));
int ans = 0;
for (int i = 1; i <= m; ++i) {
for (int j = 1; j <= n; ++j) {