# Test case 1 - single node
{a}
{0}
# Test case 2 - standard tree
{a{b{c}{d{e}}}{f{g}{h{i{j}{k}}}}{l{m}}}
{0,1,2,3,4,5,6,7,8,9,10,11,12}
# Test case 3 - a path
{{{{{{{{{{{{{{{{{{{{}}}}}}}}}}}}}}}}}}}}
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
# Test case 4 - right-branch tree
{{}{{}{{}{{}{{}{}}}}}}
{0,0,0,0,0,0,0,0,0,0,0}
# Test case 5 - left-branch tree
{{{{{{}{}}{}}{}}{}}{}}
{0,0,0,0,0,0,0,0,0,0,0}
# Test case 6 - standard tree, less labels than nodes
{a{b{c}{c{b}}}{d{b}{d{c{a}{b}}}}{c{a}}}
{0,1,2,2,1,3,1,3,2,0,1,2,0}