701. Insert into a Binary Search Tree——tree

題目分析:val值比當前值小向左查找,否則向右查找,否則插入 # Definition for a binary tree node. # class TreeNode(object): #     def __init__(self, x): #         self.val = x #         self.left = None #         self.right = None
相關文章
相關標籤/搜索