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