Skip to content

Commit 17f8376

Browse files
committed
Runtime: 227 ms (Top 13.41%) | Memory: 18.1 MB (Top 62.12%)
1 parent 6e87e94 commit 17f8376

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/algorithms/F/Find Elements in a Contaminated Binary Tree/Find Elements in a Contaminated Binary Tree.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
# Runtime: 227 ms (Top 13.41%) | Memory: 18.1 MB (Top 62.12%)
12
# Definition for a binary tree node.
23
# class TreeNode:
3-
# def __init__(self, val=0, left=None, right=None):
4-
# self.val = val
5-
# self.left = left
6-
# self.right = right
4+
# def __init__(self, val=0, left=None, right=None):
5+
# self.val = val
6+
# self.left = left
7+
# self.right = right
78
class FindElements:
89

910
def __init__(self, root: Optional[TreeNode]):
@@ -24,7 +25,6 @@ def recoverTree(root):
2425
def find(self, target: int) -> bool:
2526
return target in self.vals
2627

27-
2828
# Your FindElements object will be instantiated and called as such:
2929
# obj = FindElements(root)
30-
# param_1 = obj.find(target)
30+
# param_1 = obj.find(target)

0 commit comments

Comments
 (0)