Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
sum, one line solution in Creative category for Duplicate Zeros by kdim
def duplicate_zeros(donuts: list) -> list:
return sum([[x] * ((x == 0) + 1) for x in donuts], [])
Sept. 24, 2022
Comments: