MCPcopy Create free account
hub / github.com/BeeBombshell/Python-DSA / __init__

Method __init__

Tree Data Structure/binarytree_maxpath.py:2–5  ·  view source on GitHub ↗
(self, data, left = None, right = None)

Source from the content-addressed store, hash-verified

1class TreeNode:
2 def __init__(self, data, left = None, right = None):
3 self.data = data
4 self.left = left
5 self.right = right
6def insert(temp,data):
7 que = []
8 que.append(temp)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected