Maximum Product After K Increments at Infosys
Medium43.1% acceptance
This problem has 75.0% frequency at Infosys.
Problem Description
You are given an array of non-negative integers `nums` and an integer `k`. In one operation, you may choose **any** element from `nums` and **increment** it by `1`. Return _the**maximum** **product** of _`nums` _after**at most** _`k` _operations._ Since the answer may be very large, return it **mod...
Read full problem and hintsTopics
Also asked at 1 company
More Infosys Questions
Two SumEasyLargest Number After Mutating SubstringMediumNext PermutationMediumMaximum SubarrayMediumFind Building Where Alice and Bob Can MeetHard
View all Infosys questions