Sollicitatievraag bij Delivery Hero

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

Antwoord op sollicitatievraag

Anoniem

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.