new to the forum by the way so hello to everyone.

Can anyone suggest a way to go about comparing the fringes of two general (not binary) trees from left to right to see if they are the same without copying their elements into a different data structure?

any suggestions would help!