Skip to content

Commit 40b21ee

Browse files
authored
Update maximum-difference-between-node-and-ancestor.py
1 parent 457f858 commit 40b21ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/maximum-difference-between-node-and-ancestor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def maxAncestorDiff(self, root):
1818
"""
1919
result = 0
2020
stack = [(root, 0, float("inf"))]
21-
while len(stack) > 0:
21+
while stack:
2222
node, mx, mn = stack.pop()
2323
if not node:
2424
continue

0 commit comments

Comments
 (0)