Maximum Length of Repeated Subarray
Given two integer arrays A
and B
, return the maximum length of an subarray that appears in both arrays.
Example 1:
Note:
1 <= len(A), len(B) <= 1000
0 <= A[i], B[i] < 100
Last updated
Given two integer arrays A
and B
, return the maximum length of an subarray that appears in both arrays.
Example 1:
Note:
1 <= len(A), len(B) <= 1000
0 <= A[i], B[i] < 100
Last updated