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