Skip to content

Leetcode subtree of another tree#19

Open
Igneaalis wants to merge 21 commits intomasterfrom
LEETCODE-subtree-of-another-tree
Open

Leetcode subtree of another tree#19
Igneaalis wants to merge 21 commits intomasterfrom
LEETCODE-subtree-of-another-tree

Conversation

@Igneaalis
Copy link
Copy Markdown
Owner

Added LEETCODE "subtree-of-another-tree" recursive solution.

@Igneaalis Igneaalis requested a review from Vivelapaix June 4, 2020 22:12
# self.left = left
# self.right = right
class Solution(object):
def isSubtree(self, s, t):
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

И рядом решение без манипуляций со строками добавь. Тоже рекурсивное

@Igneaalis Igneaalis added the tbd Solution was provided but another was requested. label Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tbd Solution was provided but another was requested.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants