mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-07 15:01:58 +08:00
Format C, C++, C#, Go, Java, Python, Rust code.
This commit is contained in:
@ -35,9 +35,7 @@ def show_trunks(p: Trunk | None):
|
||||
print(p.str, end="")
|
||||
|
||||
|
||||
def print_tree(
|
||||
root: TreeNode | None, prev: Trunk | None = None, is_left: bool = False
|
||||
):
|
||||
def print_tree(root: TreeNode | None, prev: Trunk | None = None, is_left: bool = False):
|
||||
"""
|
||||
Print a binary tree
|
||||
This tree printer is borrowed from TECHIE DELIGHT
|
||||
|
Reference in New Issue
Block a user