Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Index Power by TovarischZhukov
def index_power(arr, num):
return arr[num] ** num if len(arr) > num else -1
Dec. 2, 2015