Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Index Power by impetusx
def index_power(array: list, n: int) -> int:
"""
Find Nth power of the element with index N.
"""
if len(array) > n:
return array[n]**n
return -1
Oct. 18, 2019