Skip to content

Commit 8ad7c17

Browse files
committed
[:fixed]
1 parent 570cca0 commit 8ad7c17

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

kth-smallest-element-in-a-bst/ppxyn1.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def kthSmallest(self, root: Optional[TreeNode], k: int) -> int:
1717
return
1818

1919
while curr or stack:
20+
while curr:
2021
stack.append(curr)
2122
curr = curr.left
2223
curr = stack.pop()
@@ -27,5 +28,3 @@ def kthSmallest(self, root: Optional[TreeNode], k: int) -> int:
2728

2829
curr = curr.right
2930

30-
31-

0 commit comments

Comments
 (0)