Available question text
Pick k distinct positive integers not in nums so their sum is minimized — equivalently, find and sum the k smallest positive integers missing from nums. Because nums and k can be large, the typical approach identifies gaps in the sorted unique nums and uses arithmetic-range sums to accumulate the k smallest missing values efficiently.
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 2195. Append K Integers With Minimal Sum
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source