718 Maximum Length of Repeated Subarray
Given two integer arraysA
andB
, 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
Complexity: O(n*m) time and space
Last updated