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