28. Maximum Length of Repeated Subarray
Similar to maximum length repeated substring
Given two integer arrays A
and B
, return the maximum length of an subarray that appears in both arrays.
Example 1:
Solution: (DP)
Time Complexity: O(n * m) Space Complexity: O(n * m)
Last updated