Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Index Power by Bartlomiej_Szal
def index_power(array, n):
if n >= len(array):
return -1
else:
return array[n]**n
Oct. 8, 2016
Comments: