Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Super simple solution in Clear category for Index Power by PawlakBartosz43
def index_power(array, n):
array_length = len(array)
if(array_length <= n):
result = -1
else:
result = (array[n]**n)
return result
Oct. 31, 2016