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