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