Available question text
Choose n distinct positive integers with no two summing to target so that their total is minimized, and return that sum modulo 1e9+7. The core challenge is to greedily pick the smallest allowed integers while avoiding complementary pairs (x, target−x) and handling very large n (up to 1e9) via arithmetic counting instead of simulation.
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 2834. Find the Minimum Possible Sum of a Beautiful Array
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source