MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / main

Function main

dynamic_programming/optimal_binary_search_tree.py:137–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135
136
137def main():
138 # A sample binary search tree
139 nodes = [Node(i, randint(1, 50)) for i in range(10, 0, -1)]
140 find_optimal_binary_search_tree(nodes)
141
142
143if __name__ == "__main__":

Callers 1

Calls 2

NodeClass · 0.70

Tested by

no test coverage detected