MCPcopy Create free account
hub / github.com/Jack-Lee-Hiter/AlgorithmsByPython / __init__

Method __init__

leetcode/101. Symmetric Tree.py:20–23  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

18
19class TreeNode(object):
20 def __init__(self, x):
21 self.val = x
22 self.left = None
23 self.right = None
24
25class Solution(object):
26 # recursive

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected