Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 272 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 272 Bytes

Build:

go build .

Usage:

Usage: ./lctree <leetcode tree>
Convert a leetcode tree into DOT

Example:
- Print the tree in DOT
./lctree "[1,null,2,3]"

- Open the tree directly with an image viewer (e.g feh)
./lctree "[1,null,2,3]" | dot -Tpng | feh -