Skip to content

Latest commit

 

History

History

bin

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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 -