harrysimply / learn-data-structure-and-algorithm

学习计算机中的数据结构
0 stars 0 forks source link

二叉树 Binary Tree #8

Open harrysimply opened 2 years ago

harrysimply commented 2 years ago
# Definition for a binary tree node.
class TreeNode:
     def __init__(self, val=0, left=None, right=None):
         self.val = val
         self.left = left
         self.right = right
harrysimply commented 2 years ago

【简单】 617. Merge Two Binary Trees