Skip to content

Instantly share code, notes, and snippets.

@antirez
Created March 13, 2017 13:12
Show Gist options
  • Save antirez/ebe700dcfe63541b3bccf83c10fd847f to your computer and use it in GitHub Desktop.
Save antirez/ebe700dcfe63541b3bccf83c10fd847f to your computer and use it in GitHub Desktop.

Radix tree ASCII printing.

[r] -> [ou]
           `-(o) [m] -> [au]
                         `-(a) [n] -> [eu]
                                       `-(e) []=0x0
                                       `-(u) [s] -> []=0x1
                         `-(u) "lus" -> []=0x2
           `-(u) [b] -> [ei]
                         `-(e) [nr]
                                `-(n) [s] -> []=0x3
                                `-(r) []=0x4
                         `-(i) [c] -> [ou]
                                       `-(o) [n] -> []=0x5
                                       `-(u) "ndus" -> []=0x6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment