You are given two positive integers, n and target.
An array nums is considered beautiful if it satisfies the following conditions:
nums.length is equal to n.
nums consists of pairwise distinct positive integers.
There do not exist two distinct indices i and j such that nums[i] + nums[j] is equal to target.
Return the minimum possible sum of elements in a beautiful array.
Constraints:
n
target
You are given two positive integers, n and target.
An array nums is considered beautiful if it satisfies the following conditions:
nums.length is equal to n.
nums consists of pairwise distinct positive integers.
There do not exist two distinct indices i and j such that nums[i] + nums[j] is equal to target.
Return the minimum possible sum of elements in a beautiful array.
Constraints:
n
target