Skip to content

Commit 4959de6

Browse files
authored
Update Kth Smallest Element in a BST - Leetcode 230.py
1 parent 1a455cd commit 4959de6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Kth Smallest Element in a BST - Leetcode 230.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def dfs(node):
2020

2121
count[0] = count[0] - 1
2222

23-
if count[0] > 0:
23+
if count[0] > 1:
2424
dfs(node.right)
2525

2626
dfs(root)

0 commit comments

Comments
 (0)