MCPcopy Create free account
hub / github.com/codedecks-in/LeetCode-Solutions / Solution

Class Solution

Python/binary-tree-inorder-traversal.py:12–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10# self.left = left
11# self.right = right
12class Solution:
13 def inorderTraversal(self, root: TreeNode) -> List[int]:
14 if root is None:
15 return []
16 else:
17 return self.inorderTraversal(root.left) + [root.val] + self.inorderTraversal(root.right)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected