Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add python and java solutions to lcci problem: No.04.10 and No.04.12 #278

Merged
merged 6 commits into from Jul 20, 2020
Merged

feat: add python and java solutions to lcci problem: No.04.10 and No.04.12 #278

merged 6 commits into from Jul 20, 2020

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.

None yet

1 participant