Available question text
Given a finite array repeated infinitely, find the length of the shortest contiguous subarray in that infinite periodic array whose sum equals target (or return -1). The core challenge is handling wrap‑around across repetitions and large targets efficiently, typically requiring prefix‑sum + residue/quotient reasoning to bound repeats and locate matching sums.
Related questions
Continue with questions that share topics or the same question type.
- Minimum Size Subarray Sum
Coding · Array · Binary Search · Prefix Sum
- Construct the Minimum Bitwise Array I
Coding
- Construct the Minimum Bitwise Array II
Coding
- Determine the Minimum Sum of a k-avoiding Array
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2875. Minimum Size Subarray in Infinite Array
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source