Delivery Hero Interview Question

Live exercise: Flatten a list of lists on Coderpad (Python)

Interview Answer

Anonymous

Dec 8, 2021

Use an algorithm to be invoked recursively when the element's type is list. Otherwise, just append the element to the solution.