You are given an integer array nums and an integer k. Append k unique positive integers that do not appear in nums such that the sum of the appended integers is minimized.
Return the sum of the k integers appended to nums.
Constraints:
nums.length
nums[i]
k
You are given an integer array nums and an integer k. Append k unique positive integers that do not appear in nums such that the sum of the appended integers is minimized.
Return the sum of the k integers appended to nums.
Constraints:
nums.length
nums[i]
k