标签:length lan strong and pre return ted leetcode ret
Given two integer arrays A
and B
, return the maximum length of an subarray that appears in both arrays.
Example 1:
Input: A: [1,2,3,2,1] B: [3,2,1,4,7] Output: 3 Explanation: The repeated subarray with maximum length is [3, 2, 1].
Note:
s
[LeetCode] Maximum Length of Repeated Subarray 最长的重复子数组
标签:length lan strong and pre return ted leetcode ret
原文地址:http://www.cnblogs.com/grandyang/p/7801533.html