July 4th Sale
Limited Time Deal: Unlock all premium questions for over 40% off
$10.42$6.25
10
:
09
:
29
:
47
Back to Dashboard
Tower Game Optimizer
Medium
FREE
A tower has n floors numbered from 0 to n - 1. Each floor has an energy cost to traverse and a reward value. You start a ball at one chosen floor and it descends through consecutive floors until energy runs out.
Given two integer arrays costs and rewards, and an integer energy:
...