Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Replace Last by pandektis
def replace_last(line: list) -> list:
# your code here
return line if len(line) <= 1 else [line[-1]] + line[:len(line)-1]
Feb. 4, 2021