Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Index Power by DDela
def index_power(arr: list, n: int) -> int:
return arr[n]**n if n < len(arr) else -1
April 20, 2023