Skip to content

Commit f66231b

Browse files
Keep ascii art for shell usage
1 parent 36a7429 commit f66231b

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

exercises/binary-search-tree/description.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,47 @@ For example, if we had a node containing the data 4, and we added the data 2, ou
2121

2222
![A graph with root node 4 and a single child node 2.](https://assets.exercism.org/images/exercises/binary-search-tree/tree-4-2.svg)
2323

24+
```text
25+
4
26+
/
27+
2
28+
```
29+
2430
If we then added 6, it would look like this:
2531

2632
![A graph with root node 4 and two child nodes 2 and 6.](https://assets.exercism.org/images/exercises/binary-search-tree/tree-4-2-6.svg)
2733

34+
```text
35+
4
36+
/ \
37+
2 6
38+
```
39+
2840
If we then added 3, it would look like this
2941

3042
![A graph with root node 4, two child nodes 2 and 6, and a grandchild node 3.](https://assets.exercism.org/images/exercises/binary-search-tree/tree-4-2-6-3.svg)
3143

44+
```text
45+
4
46+
/ \
47+
2 6
48+
\
49+
3
50+
```
51+
3252
And if we then added 1, 5, and 7, it would look like this
3353

3454
![A graph with root node 4, two child nodes 2 and 6, and four grandchild nodes 1, 3, 5 and 7.](https://assets.exercism.org/images/exercises/binary-search-tree/tree-4-2-6-1-3-5-7.svg)
3555

56+
```text
57+
4
58+
/ \
59+
/ \
60+
2 6
61+
/ \ / \
62+
1 3 5 7
63+
```
64+
3665
## Credit
3766

3867
The images were created by [habere-et-dispertire][habere-et-dispertire] using [PGF/TikZ][pgf-tikz] by Till Tantau.

0 commit comments

Comments
 (0)