@@ -6,7 +6,7 @@ Trees are naturally recursive data structures, and because of this, we cannot ac
6
6
{% sample lang="jl" %}
7
7
[ import:3-7, lang:"julia"] ( code/julia/Tree.jl )
8
8
{% sample lang="cpp" %}
9
- [ import:15-18 , lang:"c_cpp"] ( code/c++/tree_example.cpp )
9
+ [ import:12-15 , lang:"c_cpp"] ( code/c++/tree_example.cpp )
10
10
{% sample lang="cs" %}
11
11
[ import:7-11, lang:"csharp"] ( code/csharp/Tree.cs )
12
12
{% sample lang="c" %}
@@ -40,7 +40,7 @@ Because of this, the most straightforward way to traverse the tree might be recu
40
40
{% sample lang="jl" %}
41
41
[ import:9-16, lang:"julia"] ( code/julia/Tree.jl )
42
42
{% sample lang="cpp" %}
43
- [ import:20-27 , lang:"c_cpp"] ( code/c++/tree_example.cpp )
43
+ [ import:17-24 , lang:"c_cpp"] ( code/c++/tree_example.cpp )
44
44
{% sample lang="cs" %}
45
45
[ import:34-45, lang:"csharp"] ( code/csharp/Tree.cs )
46
46
{% sample lang="c" %}
@@ -83,7 +83,7 @@ Now, in this case the first element searched through is still the root of the tr
83
83
{% sample lang="jl" %}
84
84
[ import:18-26, lang:"julia"] ( code/julia/Tree.jl )
85
85
{% sample lang="cpp" %}
86
- [ import:29-34 lang:"c_cpp"] ( code/c++/tree_example.cpp )
86
+ [ import:26-31, lang:"c_cpp"] ( code/c++/tree_example.cpp )
87
87
{% sample lang="cs" %}
88
88
[ import:47-58, lang:"csharp"] ( code/csharp/Tree.cs )
89
89
{% sample lang="c" %}
@@ -120,7 +120,7 @@ In this case, the first node visited is at the bottom of the tree and moves up t
120
120
{% sample lang="jl" %}
121
121
[ import:28-43, lang:"julia"] ( code/julia/Tree.jl )
122
122
{% sample lang="cpp" %}
123
- [ import:37-55 lang:"c_cpp"] ( code/c++/tree_example.cpp )
123
+ [ import:34-52 lang:"c_cpp"] ( code/c++/tree_example.cpp )
124
124
{% sample lang="cs" %}
125
125
[ import:60-79, lang:"csharp"] ( code/csharp/Tree.cs )
126
126
{% sample lang="c" %}
@@ -167,7 +167,7 @@ In code, it looks like this:
167
167
{% sample lang="jl" %}
168
168
[ import:45-56, lang:"julia"] ( code/julia/Tree.jl )
169
169
{% sample lang="cpp" %}
170
- [ import:58-73 , lang:"c_cpp"] ( code/c++/tree_example.cpp )
170
+ [ import:55-70 , lang:"c_cpp"] ( code/c++/tree_example.cpp )
171
171
{% sample lang="cs" %}
172
172
[ import:81-94, lang:"csharp"] ( code/csharp/Tree.cs )
173
173
{% sample lang="c" %}
@@ -207,7 +207,7 @@ And this is exactly what Breadth-First Search (BFS) does! On top of that, it can
207
207
{% sample lang="jl" %}
208
208
[ import:58-69, lang:"julia"] ( code/julia/Tree.jl )
209
209
{% sample lang="cpp" %}
210
- [ import:76-89 , lang:"c_cpp"] ( code/c++/tree_example.cpp )
210
+ [ import:73-86 , lang:"c_cpp"] ( code/c++/tree_example.cpp )
211
211
{% sample lang="cs" %}
212
212
[ import:96-109, lang:"csharp"] ( code/csharp/Tree.cs )
213
213
{% sample lang="c" %}
0 commit comments