@@ -62,7 +62,7 @@ Because of this, the most straightforward way to traverse the tree might be recu
62
62
{% sample lang="java" %}
63
63
[ import:20-26, lang:"java"] ( code/java/Tree.java )
64
64
{% sample lang="js" %}
65
- [ import:12-15 , lang:"javascript"] ( code/javascript/tree.js )
65
+ [ import:12-19 , lang:"javascript"] ( code/javascript/tree.js )
66
66
{% sample lang="py" %}
67
67
[ import:18-23, lang:"python"] ( code/python/Tree_example.py )
68
68
{% sample lang="scratch" %}
@@ -118,7 +118,7 @@ Now, in this case the first element searched through is still the root of the tr
118
118
{% sample lang="java" %}
119
119
[ import:33-40, lang:"java"] ( code/java/Tree.java )
120
120
{% sample lang="js" %}
121
- [ import:17-20 , lang:"javascript"] ( code/javascript/tree.js )
121
+ [ import:21-28 , lang:"javascript"] ( code/javascript/tree.js )
122
122
{% sample lang="py" %}
123
123
[ import:26-31, lang:"python"] ( code/python/Tree_example.py )
124
124
{% sample lang="scratch" %}
@@ -169,7 +169,7 @@ In this case, the first node visited is at the bottom of the tree and moves up t
169
169
{% sample lang="java" %}
170
170
[ import:47-64, lang:"java"] ( code/java/Tree.java )
171
171
{% sample lang="js" %}
172
- [ import:22-34 , lang:"javascript"] ( code/javascript/tree.js )
172
+ [ import:30-51 , lang:"javascript"] ( code/javascript/tree.js )
173
173
{% sample lang="py" %}
174
174
[ import:34-46, lang:"python"] ( code/python/Tree_example.py )
175
175
{% sample lang="scratch" %}
@@ -229,7 +229,7 @@ In code, it looks like this:
229
229
{% sample lang="java" %}
230
230
[ import:67-81, lang:"java"] ( code/java/Tree.java )
231
231
{% sample lang="js" %}
232
- [ import:36-43 , lang:"javascript"] ( code/javascript/tree.js )
232
+ [ import:53-60 , lang:"javascript"] ( code/javascript/tree.js )
233
233
{% sample lang="py" %}
234
234
[ import:49-60, lang:"python"] ( code/python/Tree_example.py )
235
235
{% sample lang="scratch" %}
@@ -282,7 +282,7 @@ And this is exactly what Breadth-First Search (BFS) does! On top of that, it can
282
282
{% sample lang="java" %}
283
283
[ import:83-97, lang:"java"] ( code/java/Tree.java )
284
284
{% sample lang="js" %}
285
- [ import:45-52 , lang:"javascript"] ( code/javascript/tree.js )
285
+ [ import:62-69 , lang:"javascript"] ( code/javascript/tree.js )
286
286
{% sample lang="py" %}
287
287
[ import:63-75, lang:"python"] ( code/python/Tree_example.py )
288
288
{% sample lang="scratch" %}
0 commit comments