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

Method __init__

leetcode/113. Path Sum II.py:23–26  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

21# Definition for a binary tree node.
22class TreeNode(object):
23 def __init__(self, x):
24 self.val = x
25 self.left = None
26 self.right = None
27
28class Solution(object):
29 def pathSum(self, root, sum):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected