Given an array of positive integers arr, determine if there is a contiguous subarray of length m that repeats
A pattern is a sequence of consecutive elements. A repetition of this pattern consists of the exact same sequence appearing at least
Return true if any such pattern exists, and false otherwise.
Constraints:
arr.length
arr[i]
m
k
Given an array of positive integers arr, determine if there is a contiguous subarray of length m that repeats
A pattern is a sequence of consecutive elements. A repetition of this pattern consists of the exact same sequence appearing at least
Return true if any such pattern exists, and false otherwise.
Constraints:
arr.length
arr[i]
m
k