You are given two positive integers, n and k.
An array of distinct positive integers is defined as a k avoiding array if there does not exist any pair of distinct elements that sum to k.
Return the minimum possible sum of a k avoiding array of length n.
Constraints:
n, k
You are given two positive integers, n and k.
An array of distinct positive integers is defined as a k avoiding array if there does not exist any pair of distinct elements that sum to k.
Return the minimum possible sum of a k avoiding array of length n.
Constraints:
n, k