Available question text
Given an even-length array nums and a limit, you may replace any element with a value in [1, limit]; find the minimum number of single-element replacements so that every symmetric pair nums[i] + nums[n-1-i] equals the same target sum. The key challenge is choosing the optimal target sum S (2..2*limit) and efficiently counting, for each pair, whether it needs 0, 1, or 2 moves to reach S under constraints up to 1e5.
Related questions
Continue with questions that share topics or the same question type.
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 1674. Minimum Moves to Make Array Complementary
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source