Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
IndexPower.c solution in Clear category for Index Power by trudnopodobny
def index_power(array: list, N: int) -> int:
if N >= len(array):
return -1
return (array[N])**N
Oct. 4, 2018