Given two binary search trees, write function which tells if two such trees are the same – (i.e. same info in the nodes, same branching to left and right at every node).
Anonymous
1) Pre order traversal both trees into strings then compare the strings.
Check out your Company Bowl for anonymous work chats.