MCPcopy Create free account
hub / github.com/ashishps1/awesome-leetcode-resources / TreeNode

Class TreeNode

patterns/python/level_order_traversal.py:4–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2
3# Definition for a binary tree node.
4class TreeNode:
5 def __init__(self, x):
6 self.val = x
7 self.left = None
8 self.right = None
9
10class LevelOrderTraversal:
11 def level_order(self, root):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected