You are given two integer arrays nums1 and nums2 of equal length.
In a single right shift operation, the last element of nums1 moves to index
Return the maximum number of indices i such that nums1[i] == nums2[i] after performing any number of right shifts on nums1.
Constraints:
nums1.length nums2.length
nums1.length, nums2.length
nums1[i], nums2[i]
You are given two integer arrays nums1 and nums2 of equal length.
In a single right shift operation, the last element of nums1 moves to index
Return the maximum number of indices i such that nums1[i] == nums2[i] after performing any number of right shifts on nums1.
Constraints:
nums1.length nums2.length
nums1.length, nums2.length
nums1[i], nums2[i]