Generate a binary tree using database

This question was asked during my last interview ,i was unable to answer this

Ok you have to create a database schema where you have to store a binary tree

and then you have to write 3 queries through which you have to traverse data in

preorder, inorder ,postorder

Replies

You are reading an archived discussion.

Related Posts

Apple today took administrative control of the iCloud.com domain less than a week before CEO Steve Jobs is to unveil his company's new cloud-based service. According to WHOIS searches Wednesday,...
You have to create this part in just three commands. If you have any other method feel free to share it.
I wrote a big tutorial to show how to upload images to posts on CE forum. Then deleted it. We are an engineer's forum and I'm assuming all our members...
Google on Wednesday disclosed that a cyber attack originating in China resulted in the breach of the Gmail accounts of hundreds of high-profile individuals in several nations. In a blog...
I'm not sure whether this topic is India-specific or relevant to many nations. The biggest problem, I see, is that educated people do not get out of their homes at...