MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / Node

Class Node

binary_tree/basic_binary_tree.py:1–5  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1class Node: # This is the Class Node with constructor that contains data variable to type data and left,right pointers.
2 def __init__(self, data):
3 self.data = data
4 self.left = None
5 self.right = None
6
7
8def depth_of_tree(tree): #This is the recursive function to find the depth of binary tree.

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected