Search⌘ K
AI Features

Maximum Product After K Increments

Maximum Product After K Increments gives a non-negative integer array and a limit on increments. Distribute at most that many additions to maximize the product, then return it modulo a large prime.

Statement

You are given an array, nums, consisting of non-negative integers, and an integer k ...