# 力扣718. 最长重复子数组


## 力扣718. Maximum Length of Repeated Subarray（最长重复子数组）

计算两个数组中最长公共子数组长度。

示例 1：

![](../posts/01_学习/87_LeetCode/0718_最长重复子数组/img/0718-1-description.png)

```
输入：nums1 = [1,2,3,2,1], nums2 = [3,2,1,4,7]
输出：3
解释：...
```

提示：
- 1 <= nums1.length, nums2.length <= 1000
- 0 <= nums1[i], nums2[i] <= 100

