@@ -4,21 +4,23 @@ Trees are naturally recursive data structures, and because of this, we cannot ac
4
4
5
5
{% method %}
6
6
{% sample lang="jl" %}
7
- [ import:4-8 , lang:"julia"] ( code/julia/Tree.jl )
7
+ [ import:3-7 , lang:"julia"] ( code/julia/Tree.jl )
8
8
{% sample lang="cpp" %}
9
9
[ import:15-18, lang:"c_cpp"] ( code/c++/tree_example.cpp )
10
10
{% sample lang="cs" %}
11
11
[ import:11-15, lang:"csharp"] ( code/cs/TreeMdAdditional/TreeMdAdditional.cs )
12
12
{% sample lang="c" %}
13
13
[ import:5-10, lang:"c_cpp"] ( code/c/tree_traversal.c )
14
14
{% sample lang="js" %}
15
- [ import:3-8, lang:"julia"] ( code/julia/Tree.jl )
15
+ This has not been implemented in your chosen language, so here is the Julia code
16
+ [ import:3-7, lang:"julia"] ( code/julia/Tree.jl )
16
17
{% sample lang="py2" %}
17
18
[ import:1-5, lang:"python"] ( code/python2/Tree_example.py )
18
19
{% sample lang="py3" %}
19
20
[ import:5-10, lang:"python"] ( code/python3/Tree_example.py )
20
21
{% sample lang="scratch" %}
21
- [ import:3-8, lang:"julia"] ( code/julia/Tree.jl )
22
+ This has not been implemented in your chosen language, so here is the Julia code
23
+ [ import:3-7, lang:"julia"] ( code/julia/Tree.jl )
22
24
{% sample lang="rs"%}
23
25
[ import:4-7, lang:"rust"] ( code/rust/tree.rs )
24
26
{% endmethod %}
@@ -27,7 +29,7 @@ Because of this, the most straightforward way to traverse the tree might be recu
27
29
28
30
{% method %}
29
31
{% sample lang="jl" %}
30
- [ import:11-18 , lang:"julia"] ( code/julia/Tree.jl )
32
+ [ import:9-16 , lang:"julia"] ( code/julia/Tree.jl )
31
33
{% sample lang="cpp" %}
32
34
[ import:20-27, lang:"c_cpp"] ( code/c++/tree_example.cpp )
33
35
{% sample lang="cs" %}
@@ -39,9 +41,11 @@ Because of this, the most straightforward way to traverse the tree might be recu
39
41
{% sample lang="py2" %}
40
42
[ import:8-16, lang:"python"] ( code/python2/Tree_example.py )
41
43
{% sample lang="py3" %}
42
- [ import:10-18, lang:"julia"] ( code/julia/Tree.jl )
44
+ This has not been implemented in your chosen language, so here is the Julia code
45
+ [ import:9-16, lang:"julia"] ( code/julia/Tree.jl )
43
46
{% sample lang="scratch" %}
44
- [ import:10-18, lang:"julia"] ( code/julia/Tree.jl )
47
+ This has not been implemented in your chosen language, so here is the Julia code
48
+ [ import:9-16, lang:"julia"] ( code/julia/Tree.jl )
45
49
{% sample lang="rs"%}
46
50
[ import:9-15 lang:"rust"] ( code/rust/tree.rs )
47
51
{% endmethod %}
@@ -59,23 +63,30 @@ Now, in this case the first element searched through is still the root of the tr
59
63
60
64
{% method %}
61
65
{% sample lang="jl" %}
62
- [ import:21-29 , lang:"julia"] ( code/julia/Tree.jl )
66
+ [ import:18-26 , lang:"julia"] ( code/julia/Tree.jl )
63
67
{% sample lang="cpp" %}
64
- [ import:20-29, lang:"julia"] ( code/julia/Tree.jl )
68
+ This has not been implemented in your chosen language, so here is the Julia code
69
+ [ import:18-26, lang:"julia"] ( code/julia/Tree.jl )
65
70
{% sample lang="cs" %}
66
71
[ import:75-84, lang:"csharp"] ( code/cs/TreeMdAdditional/TreeMdAdditional.cs )
67
72
{% sample lang="c" %}
68
- [ import:20-29, lang:"julia"] ( code/julia/Tree.jl )
73
+ This has not been implemented in your chosen language, so here is the Julia code
74
+ [ import:18-26, lang:"julia"] ( code/julia/Tree.jl )
69
75
{% sample lang="js" %}
70
- [ import:20-29, lang:"julia"] ( code/julia/Tree.jl )
76
+ This has not been implemented in your chosen language, so here is the Julia code
77
+ [ import:18-26, lang:"julia"] ( code/julia/Tree.jl )
71
78
{% sample lang="py2" %}
72
- [ import:20-29, lang:"julia"] ( code/julia/Tree.jl )
79
+ This has not been implemented in your chosen language, so here is the Julia code
80
+ [ import:18-26, lang:"julia"] ( code/julia/Tree.jl )
73
81
{% sample lang="py3" %}
74
- [ import:20-29, lang:"julia"] ( code/julia/Tree.jl )
82
+ This has not been implemented in your chosen language, so here is the Julia code
83
+ [ import:18-26, lang:"julia"] ( code/julia/Tree.jl )
75
84
{% sample lang="scratch" %}
76
- [ import:20-29, lang:"julia"] ( code/julia/Tree.jl )
85
+ This has not been implemented in your chosen language, so here is the Julia code
86
+ [ import:18-26, lang:"julia"] ( code/julia/Tree.jl )
77
87
{% sample lang="rs"%}
78
- [ import:20-29, lang:"julia"] ( code/julia/Tree.jl )
88
+ This has not been implemented in your chosen language, so here is the Julia code
89
+ [ import:18-26, lang:"julia"] ( code/julia/Tree.jl )
79
90
{% endmethod %}
80
91
81
92
<p align =" center " >
@@ -86,23 +97,30 @@ In this case, the first node visited is at the bottom of the tree and moves up t
86
97
87
98
{% method %}
88
99
{% sample lang="jl" %}
89
- [ import:32-47 , lang:"julia"] ( code/julia/Tree.jl )
100
+ [ import:28-43 , lang:"julia"] ( code/julia/Tree.jl )
90
101
{% sample lang="cpp" %}
91
- [ import:31-47, lang:"julia"] ( code/julia/Tree.jl )
102
+ This has not been implemented in your chosen language, so here is the Julia code
103
+ [ import:28-43, lang:"julia"] ( code/julia/Tree.jl )
92
104
{% sample lang="cs" %}
93
105
[ import:86-104, lang:"csharp"] ( code/cs/TreeMdAdditional/TreeMdAdditional.cs )
94
106
{% sample lang="c" %}
95
- [ import:31-47, lang:"julia"] ( code/julia/Tree.jl )
107
+ This has not been implemented in your chosen language, so here is the Julia code
108
+ [ import:28-43, lang:"julia"] ( code/julia/Tree.jl )
96
109
{% sample lang="js" %}
97
- [ import:31-47, lang:"julia"] ( code/julia/Tree.jl )
110
+ This has not been implemented in your chosen language, so here is the Julia code
111
+ [ import:28-43, lang:"julia"] ( code/julia/Tree.jl )
98
112
{% sample lang="py2" %}
99
- [ import:31-47, lang:"julia"] ( code/julia/Tree.jl )
113
+ This has not been implemented in your chosen language, so here is the Julia code
114
+ [ import:28-43, lang:"julia"] ( code/julia/Tree.jl )
100
115
{% sample lang="py3" %}
101
- [ import:31-47, lang:"julia"] ( code/julia/Tree.jl )
116
+ This has not been implemented in your chosen language, so here is the Julia code
117
+ [ import:28-43, lang:"julia"] ( code/julia/Tree.jl )
102
118
{% sample lang="scratch" %}
103
- [ import:31-47, lang:"julia"] ( code/julia/Tree.jl )
119
+ This has not been implemented in your chosen language, so here is the Julia code
120
+ [ import:28-43, lang:"julia"] ( code/julia/Tree.jl )
104
121
{% sample lang="rs"%}
105
- [ import:31-47, lang:"julia"] ( code/julia/Tree.jl )
122
+ This has not been implemented in your chosen language, so here is the Julia code
123
+ [ import:28-43, lang:"julia"] ( code/julia/Tree.jl )
106
124
{% endmethod %}
107
125
108
126
<p align =" center " >
@@ -123,7 +141,7 @@ In code, it looks like this:
123
141
124
142
{% method %}
125
143
{% sample lang="jl" %}
126
- [ import:50-61 , lang:"julia"] ( code/julia/Tree.jl )
144
+ [ import:45-56 , lang:"julia"] ( code/julia/Tree.jl )
127
145
{% sample lang="cpp" %}
128
146
[ import:29-45, lang:"c_cpp"] ( code/c++/tree_example.cpp )
129
147
{% sample lang="cs" %}
@@ -139,7 +157,8 @@ In code, it looks like this:
139
157
{% sample lang="py3" %}
140
158
[ import:31-45, lang:"python"] ( code/python3/Tree_example.py )
141
159
{% sample lang="scratch" %}
142
- [ import:49-61, lang:"julia"] ( code/julia/Tree.jl )
160
+ This has not been implemented in your chosen language, so here is the Julia code
161
+ [ import:45-56, lang:"julia"] ( code/julia/Tree.jl )
143
162
{% sample lang="rs"%}
144
163
[ import:17-24, lang:"rust"] ( code/rust/tree.rs )
145
164
{% endmethod %}
@@ -154,7 +173,7 @@ And this is exactly what Breadth-First Search (BFS) does! On top of that, it can
154
173
155
174
{% method %}
156
175
{% sample lang="jl" %}
157
- [ import:64-75 , lang:"julia"] ( code/julia/Tree.jl )
176
+ [ import:58-69 , lang:"julia"] ( code/julia/Tree.jl )
158
177
{% sample lang="cpp" %}
159
178
[ import:47-61, lang:"c_cpp"] ( code/c++/tree_example.cpp )
160
179
{% sample lang="cs" %}
@@ -168,7 +187,8 @@ And this is exactly what Breadth-First Search (BFS) does! On top of that, it can
168
187
{% sample lang="py3" %}
169
188
[ import:48-62, lang:"python"] ( code/python3/Tree_example.py )
170
189
{% sample lang="scratch" %}
171
- [ import:63-75, lang:"julia"] ( code/julia/Tree.jl )
190
+ This has not been implemented in your chosen language, so here is the Julia code
191
+ [ import:58-69, lang:"julia"] ( code/julia/Tree.jl )
172
192
{% sample lang="rs"%}
173
193
[ import:26-34, lang:"rust"] ( code/rust/tree.rs )
174
194
{% endmethod %}
@@ -177,7 +197,7 @@ And this is exactly what Breadth-First Search (BFS) does! On top of that, it can
177
197
{% method %}
178
198
{% sample lang="jl" %}
179
199
### Julia
180
- [ import, lang:"julia"] ( code/julia/Tree_example .jl )
200
+ [ import, lang:"julia"] ( code/julia/Tree .jl )
181
201
{% sample lang="cpp" %}
182
202
### C++
183
203
[ import, lang:"c_cpp"] ( code/c++/tree_example.cpp )
0 commit comments