Tap here to switch tabs
Problem
Submissions

Problem: Maximum Length of Repeated Subarray

Try to solve the Maximum Length of Repeated Subarray problem.

Statement

Given two integer arrays nums1 and nums2, return the maximum length of a subarray that appears in both arrays.

Constraints:

  • 1≤1 \leq nums1.length, nums2.length ≤1000\leq 1000

  • 0≤0 \leq nums1[i], nums2[i] ≤100\leq 100

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Maximum Length of Repeated Subarray

Try to solve the Maximum Length of Repeated Subarray problem.

Statement

Given two integer arrays nums1 and nums2, return the maximum length of a subarray that appears in both arrays.

Constraints:

  • 1≤1 \leq nums1.length, nums2.length ≤1000\leq 1000

  • 0≤0 \leq nums1[i], nums2[i] ≤100\leq 100