@@ -60,7 +60,7 @@ Because of this, the most straightforward way to traverse the tree might be recu
60
60
{% sample lang="java" %}
61
61
[ import:21-27, lang:"java"] ( code/java/Tree.java )
62
62
{% sample lang="js" %}
63
- [ import:12-15 , lang:"javascript"] ( code/javascript/tree.js )
63
+ [ import:12-19 , lang:"javascript"] ( code/javascript/tree.js )
64
64
{% sample lang="py" %}
65
65
[ import:18-23, lang:"python"] ( code/python/Tree_example.py )
66
66
{% sample lang="scratch" %}
@@ -114,7 +114,7 @@ Now, in this case the first element searched through is still the root of the tr
114
114
{% sample lang="java" %}
115
115
[ import:34-41, lang:"java"] ( code/java/Tree.java )
116
116
{% sample lang="js" %}
117
- [ import:17-20 , lang:"javascript"] ( code/javascript/tree.js )
117
+ [ import:21-28 , lang:"javascript"] ( code/javascript/tree.js )
118
118
{% sample lang="py" %}
119
119
[ import:26-31, lang:"python"] ( code/python/Tree_example.py )
120
120
{% sample lang="scratch" %}
@@ -163,7 +163,7 @@ In this case, the first node visited is at the bottom of the tree and moves up t
163
163
{% sample lang="java" %}
164
164
[ import:48-62, lang:"java"] ( code/java/Tree.java )
165
165
{% sample lang="js" %}
166
- [ import:22-39 , lang:"javascript"] ( code/javascript/tree.js )
166
+ [ import:30-51 , lang:"javascript"] ( code/javascript/tree.js )
167
167
{% sample lang="py" %}
168
168
[ import:34-46, lang:"python"] ( code/python/Tree_example.py )
169
169
{% sample lang="scratch" %}
@@ -221,7 +221,7 @@ In code, it looks like this:
221
221
{% sample lang="java" %}
222
222
[ import:65-79, lang:"java"] ( code/java/Tree.java )
223
223
{% sample lang="js" %}
224
- [ import:41-48 , lang:"javascript"] ( code/javascript/tree.js )
224
+ [ import:53-60 , lang:"javascript"] ( code/javascript/tree.js )
225
225
{% sample lang="py" %}
226
226
[ import:49-60, lang:"python"] ( code/python/Tree_example.py )
227
227
{% sample lang="scratch" %}
@@ -272,7 +272,7 @@ And this is exactly what Breadth-First Search (BFS) does! On top of that, it can
272
272
{% sample lang="java" %}
273
273
[ import:81-95, lang:"java"] ( code/java/Tree.java )
274
274
{% sample lang="js" %}
275
- [ import:50-57 , lang:"javascript"] ( code/javascript/tree.js )
275
+ [ import:62-69 , lang:"javascript"] ( code/javascript/tree.js )
276
276
{% sample lang="py" %}
277
277
[ import:63-75, lang:"python"] ( code/python/Tree_example.py )
278
278
{% sample lang="scratch" %}
0 commit comments