Search⌘ K
AI Features

Maximal Score After Applying K Operations

Maximal Score After Applying K Operations asks you to choose an array element exactly k times, adding its current value to a score and replacing it with one-third rounded up. Return the maximum score.

Statement

You are given a 0-indexed array of integer nums and an integer k. Your task is to maximize a score ...