def setUp(self):
     self.builder = Str2Tree()
     self.func = ZigzagTraversal()
Exemplo n.º 2
0
 def setUp(self):
     self.builder = Str2Tree()
     self.func = BinaryTreeColoring().btreeGameWinningMove
 def setUp(self):
     self.builder = Str2Tree()
     self.func = BSTByPreorder().bstFromPreorder
 def setUp(self):
     self.builder = Str2Tree()
     self.func = CompleteTreeCount().countNodes
 def setUp(self):
     self.builder = Str2Tree()
     self.func = BSTToList()
Exemplo n.º 6
0
 def setUp(self):
     self.builder = Str2Tree()
     self.func = Tree2Str()
 def setUp(self):
     self.builder = Str2Tree()
     self.func = MaxPathSum()
 def setUp(self):
     self.builder = Str2Tree()
     self.func = ClosestValue()
Exemplo n.º 9
0
 def setUp(self):
     self.builder = Str2Tree()
     self.serializer = Tree2Str()
     self.func = BinaryTreeToList()
Exemplo n.º 10
0
 def setUp(self):
     self.builder = Str2Tree()
     self.func = BinaryTreeDiameter()
Exemplo n.º 11
0
 def setUp(self):
     self.builder = Str2Tree().str2tree
     self.serializer = Tree2Str().tree2str
     self.func = DeleteNodes().delNodes
Exemplo n.º 12
0
 def setUp(self):
     self.builder = Str2Tree()
Exemplo n.º 13
0
 def setUp(self):
     self.builder = Str2Tree()
     self.func = ValidBST()
 def setUp(self):
     self.builder = Str2Tree()
     self.func = TreePath()
Exemplo n.º 15
0
 def setUp(self):
     self.builder = Str2Tree()
     self.func = VerticalOrderTraversal()
 def setUp(self):
     self.builder = Str2Tree()
     self.func = RightView()
 def setUp(self):
     self.builder = Str2Tree()
     self.func = CompleteBinaryTree().isCompleteTree
Exemplo n.º 18
0
 def setUp(self):
     self.builder = Str2Tree()
     self.serializer = Tree2Str()
     self.func = DeepestSmallestSubtree().subtreeWithAllDeepest
 def setUp(self):
     self.builder = Str2Tree().str2tree
     self.serializer = Tree2Str().tree2str
     self.func = FlippedBinaryTree().flipEquiv
Exemplo n.º 20
0
 def setUp(self):
     self.func = Str2Tree()
Exemplo n.º 21
0
 def setUp(self):
     self.builder = Str2Tree()
     self.func = BalancedBinaryTree().isBalanced
Exemplo n.º 22
0
 def setUp(self):
     self.builder = Str2Tree()
     self.func = LevelOrderTraversal()