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