Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8942145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:27:16+00:00 2026-06-15T11:27:16+00:00

how to create a tree from following post and in order traversed path In-order

  • 0

how to create a tree from following post and in order traversed path

In-order : INFORMATION
POST-ORDER : INOFMAINOTR

i know that all the left side elements from R will be the left sub-tree of Root ‘R’ and right side elements will be the right sub tree of root R
but i don’t know how to proceed further
can any one please help me with step by step instruction thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T11:27:17+00:00Added an answer on June 15, 2026 at 11:27 am

    Step 1: Locate last letter in Post-Order, let it be X; which is root.
    Step 2: Locate X in In-Order. Letters left to X form left sub tree & Letters to the rught of X form right sub tree.
    Step 3: Repeat step 1, 2 for each node.

    All the logic becomes simple when you find step 2 for the second iteration.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi, I have the following code to create a tree from the current AD
The following macro, extracted from a larger example, is supposed to create a tree
I have this function that returns me all children of a tree node: CREATE
I'm trying to create an expression tree dynamicly. Let asume that I have two
I have a python script that is trying to create a directory tree dynamically
I've been using seesaw.tree/simple-tree-model to create my TreeModels, the docs say that this is
I'm trying to create an eclipse plugin that creates a view with a Tree
I have the following table: CREATE TABLE [dbo].[Tree]( [AutoID] [int] IDENTITY(1,1) NOT NULL, [Category]
My date is organized in tree structure. The following applies (Oracle SQL syntax): CREATE
Given the following tables: CREATE TABLE tree ( id serial NOT NULL, name character

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.