Search⌘ K
AI Features

Maximal Score After Applying K Operations

Maximal Score After Applying K Operations asks you to choose an array element k times, adding its value to your score and replacing it with the ceiling after division by three. Find maximum score.

Statement

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