Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Jul 20, 2020

添加《程序员面试金典》题解:面试题 04.10 检查子树 和 04.12 求和路径

@yanglbme
Copy link
Member

@lihangqi 你好,方便改成 Python3 的模板吗?

像以下这种:

# Definition for a binary tree node.
# class TreeNode:
#     def __init__(self, x):
#         self.val = x
#         self.left = None
#         self.right = None

class Solution:
    def checkSubTree(self, t1: TreeNode, t2: TreeNode) -> bool:

而不是:

class Solution(object):
    def checkSubTree(self, t1, t2):

@yanglbme yanglbme merged commit 88aaf42 into doocs:master Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant