Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HuberTRoy/leetCode
/ kthSmallest
Method
kthSmallest
Tree/KthSmallestElementInABST.py:70–73 ·
view source on GitHub ↗
(self, root: TreeNode, k: int)
Source
from the content-addressed store, hash-verified
68
return
69
70
def
kthSmallest(self, root: TreeNode, k: int) -> int:
71
self.data = []
72
Solution.find_data(self, root)
73
return
self.data[k-1]
Callers
nothing calls this directly
Calls
1
find_data
Method · 0.80
Tested by
no test coverage detected