Skip to content

Commit 2e8bf9a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f840875 commit 2e8bf9a

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

data_structures/binary_tree/top_view_of_binary_tree.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ def top_view(self, root):
3030
# Retrieve the node and its vertical position from the front of the queue
3131
node, line = q.popleft()
3232

33-
3433
if line not in mpp:
3534
mpp[line] = node.data
3635

@@ -41,7 +40,6 @@ def top_view(self, root):
4140

4241
# Process right child
4342
if node.right:
44-
4543
q.append((node.right, line + 1))
4644

4745
# Transfer values from the map to the result list

0 commit comments

Comments
 (0)