Skip to content

Commit 2bf183e

Browse files
authored
Update flatten_array.py
1 parent b4b247f commit 2bf183e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

data_structures/array/flatten_array.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@
88
for sub in lst:
99
if isinstance(sub, list):
1010
flat.extend(sub)
11+
else:
12+
flat.append(sub)
1113

0 commit comments

Comments
 (0)