Files
python/exercises/practice/binary-search-tree/binary_search_tree.py
Job van der Wal cb83d99da3 [Linting]: Lint practice stub files (1 / ?) (#2787)
* First three fixed files

* atbash-cipher

* next two

* Another 2

* Update exercises/practice/alphametics/.meta/example.py

Co-authored-by: BethanyG <BethanyG@users.noreply.github.com>

* Update exercises/practice/atbash-cipher/.meta/example.py

Co-authored-by: BethanyG <BethanyG@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: BethanyG <BethanyG@users.noreply.github.com>

* Fix test failing; Fix oversights

* lol

* Fixed some stuff

* BOBBY!!

* affine cipher

Co-authored-by: BethanyG <BethanyG@users.noreply.github.com>
2021-11-18 01:04:47 +01:00

20 lines
401 B
Python

class TreeNode:
def __init__(self, data, left=None, right=None):
self.data = None
self.left = None
self.right = None
def __str__(self):
return f'TreeNode(data={self.data}, left={self.left}, right={self.right})'
class BinarySearchTree:
def __init__(self, tree_data):
pass
def data(self):
pass
def sorted_data(self):
pass