find if one tree is subset of the other
How do you find if one tree is subset of the other?
consider below two tree
A
B C
D E
in order is DBEAC
for tree as
E
B A
in order is BEA
You can say that it is a sub-tree .
consider below two tree
A
B C
D E
in order is DBEAC
for tree as
E
B A
in order is BEA
You can say that it is a sub-tree .
Comments
Post a Comment