I came across an interview question which states: How would you represent the letters A, B, C, D, E, F and G in a sorted order using a binary tree representation?
It's really stumped me. If we take G to be the root of the tree then the left child would E and the right child would be F so that the right subtree is "greater than" the left subtree. Then for the node E, its left child would be A and the right child B and F's left child would be C and its right child would be D.
Is that correct or does anyone else have a different answer?