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