Available question text
Find two non-overlapping subarrays of positive integers that each sum to target and return the minimum possible total length of those two subarrays (or -1 if none exist). Because all elements are positive, the problem reduces to locating target-sum windows and combining the best left/right choices using linear scans.
Related questions
Continue with questions that share topics or the same question type.
- Maximum Number of Non-Overlapping Subarrays With Sum Equals Target
Coding
- Maximum Sum of Two Non-Overlapping Subarrays
Coding · Array · Dynamic Programming · Sliding Window
- Find All Combinations of Bag Sizes That Sum to a Target Capacity
Coding
- Find Common Elements Between Two Arrays
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 1477. Find Two Non-overlapping Sub-arrays Each With Target Sum
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source