Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Duplicate Zeros by oduvan
from collections.abc import Iterable
def duplicate_zeros(donuts: list[int]) -> Iterable[int]:
# your code here
for i in donuts:
if not i:
yield i
yield i
April 25, 2023
Comments: