Command Line Syntax

Test Cases

  • Root -a:aa~aac:ab~4 -b:ba~128+32~4 -c:12+4

    Ans:

    Root
     |
     +--a
     |    |
     |    +--aa
     |    |     |
     |    |     +--aac
     |    |
     |    +--ab
     |          |
     |          +--4
     |
     +--b
     |    |
     |    +--ba
     |    |     |
     |    |     +--128|42
     |    |
     |    +--4
     |
     +--c
     |
     +--12|4
    

  • Root -a:aa~aaa~aab:ab~4:ac~4+16 -c:ca~12+24:cc~3+8

    Ans:

    Root
     |
     +--a
     |    |
     |    +--aa
     |    |     |
     |    |     +--aaa
     |    |     +--aab
     |    |
     |    +--ab
     |    |     |
     |    |     +--4
     |    |
     |    +--ac
     |          |
     |          +--4|16
     |
     +--c
     |
     +--ca
     |     |
     |     +--12|24
     |
     +--3|8
     |
     +--cc
     +--None