0
[code-golf]
Maximize the array
Given an array of nonnegative numbers and a positive integer k, what is the largest number you can have in the array after k operations?
There are two types of operations you can perform:
Choose the first number and replace it with the smallest positive integer not...