Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Straightforward solution in Clear category for Replace with Biggest by suic
from typing import Iterable
def replace_biggest(data: list[int]) -> Iterable[int]:
return (max(data[i+1:], default=-1) for i in range(len(data)))
Nov. 10, 2022