MCPcopy Create free account
hub / github.com/careercup/ctci / TreeNode

Class TreeNode

python/Chapter 4/Question4_7/BinaryTreeNode.py:22–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21#-------------A solution------------
22class TreeNode:
23 def __init__(self,key):
24 self.key = key
25 self.left = None
26 self.right = None
27 self.p = None
28
29 def __str__(self):
30 return str(self.key)
31
32class BinarySearchTree:
33 def __init__(self):

Callers 1

BinaryTreeNode.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected