Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Speedy category for Index Power by Nuszwkartlo
def index_power(array, n):
if (n >= len(array)):
return -1
return array[n]**n
Nov. 10, 2015