Create two trees , one for numbers another for name . You can search in respective tree for name or number based search. You can also search by prefix , all leaf nodes from the prefix-node would give you all matches.
-- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
