Example of Data Structure Trick
...
...
Linking the children of a Q node
son
daughter
parent
parent
brother
sister
Linking of siblings can be in any order.
Middle children don’t know parents.
End children know parents.
Previous slide
Next slide
Back to first slide
View graphic version