Skip to content

Commit 8bc9340

Browse files
committed
Create README.md
1 parent 747c51f commit 8bc9340

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# leetcode-ruby
2+
3+
Ruby-Graphviz library needs to be installed in order to use drawTree() function
4+
5+
Source at: https://github.com/glejeune/Ruby-Graphviz
6+
7+
```bash
8+
gem install graphviz
9+
10+
gem install ruby-graphviz
11+
```
12+
13+
For a binary tree, like below
14+
```
15+
1
16+
/ \
17+
2 3
18+
\
19+
4
20+
```
21+
22+
the function will generate a png file in the same directory as below:
23+
24+
![img](http://i.imgur.com/b50jywY.png)

0 commit comments

Comments
 (0)