Skip to content

Commit ea2590c

Browse files
committed
Update binary-tree-vertical-order-traversal.py
1 parent deb6a41 commit ea2590c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/binary-tree-vertical-order-traversal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def verticalOrder(self, root):
3636

3737
res = []
3838
for i in xrange(min_idx, max_idx + 1):
39-
if lookup[i]:
40-
res.append(lookup[i])
39+
res.append(lookup[i])
40+
4141
return res
4242

0 commit comments

Comments
 (0)