二叉树的第K个节点 class Solution: # 返回对应节点TreeNode def KthNode(self, root, k): if root==None or k==0: return None res=[] def Mid(node): if len(res)>=k or node==None: return None Mid(node leetcode 2024-05-14 41 点赞 0 评论 62 浏览