MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

binary_search_tree.py:21–23  ·  view source on GitHub ↗

Initialising a BST

(self)

Source from the content-addressed store, hash-verified

19 """Class for BST"""
20
21 def __init__(self):
22 """Initialising a BST"""
23 self.root = None
24
25 def insert(self, val):
26 """Creating a BST with root value as val"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected