Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Ternary If solution in Clear category for Index Power by swagg010164
def index_power(array: list, n: int) -> int:
return -1 if n >= len(array) else array[n]**n
Nov. 8, 2019
Comments: