Recursively flatten a deeply nested list of integers into a flat list.
Constraints
Example
>>> flatten_list([1, [2, 3], [[4]], 5]) [1, 2, 3, 4, 5] >>> flatten_list([]) [] >>> flatten_list([[1, [2]], 3]) [1, 2, 3]
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints