Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Duplicate Zeros by eugene100372
from collections.abc import Iterable
def duplicate_zeros(donuts: list[int]) -> Iterable[int]:
res=[]
for num in donuts:
res.append(num)
if not num: res.append(0)
return res
Nov. 30, 2024
Comments: