We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1605604 commit 4baa72bCopy full SHA for 4baa72b
data_structures/binary_tree/all_traversals_one_pass.py
@@ -7,6 +7,7 @@
7
8
from typing import Optional, List, Tuple
9
10
+
11
class Node:
12
"""
13
A class to represent a node in a binary tree.
@@ -19,7 +20,7 @@ class Node:
19
20
The left child of the node.
21
right : Node, optional
22
The right child of the node.
-
23
24
Reference: https://en.wikipedia.org/wiki/Binary_tree
25
26
@@ -122,7 +123,7 @@ def build_sample_tree() -> Node:
122
123
-------
124
Node
125
The root node of the binary tree.
126
127
128
129
root = Node(1)
0 commit comments