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

Method __init__

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

Source from the content-addressed store, hash-verified

18# Definition for a binary tree node.
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 def invertTree(self, root):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected