Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Third solution in Clear category for Index Power by ShamilTim
def index_power(array: list, n: int) -> int:
if len(array) > n:
return array[n]**n
else:
return -1
Sept. 13, 2019