Delivery Hero interview question

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

Interview Answer

Anonymous

8 Dec 2021

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