Array
3147. Taking Maximum Energy From the Mystic Dungeon
Given an array energy and a number k. Starting from any position i, a mage teleports to i+k, absorbing the energy of each visited cell, until leaving the array. Find the maximum total energy over all…
Loading…