Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Speedy category for Index Power by Evgeny_Sergeev
def index_power(array: list, n: int) -> int:
result = array[n]**n if len(array)-1>=n and n>=0 else -1
return result
Dec. 7, 2018