Double an element of the array exactly K times — K can be a billion — and keep the final sum as small as possible.
Double an element of the array exactly K times — K can be a billion — and keep the final sum as small as possible.
Opens with the full question.