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 7828959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:33:45+00:00 2026-06-02T10:33:45+00:00

If I have a binary search tree like this then what will be lowest

  • 0

If I have a binary search tree like this then what will be lowest common ancestor of nodes 6 and 1?

Binary Search tree

  • 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-02T10:33:47+00:00Added an answer on June 2, 2026 at 10:33 am

    According to the Wikipedia definition of the Lowest common ancestor I correct myself:

    The lowest common ancestor (LCA) is a concept in graph theory and
    computer science. Let T be a rooted tree with n nodes. The lowest
    common ancestor is defined between two nodes v and w as the lowest
    node in T that has both v and w as descendants (where we allow a node
    to be a descendant of itself
    ).

    So yes going by this definition the correct answer would be 6. If this is an interview question would be good to clarify in advance with the interviewer.

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

Sidebar

Related Questions

I have a binary search tree consists of nodes like: struct ProductNode { Product
On binary search tree,If I give input as 2,1,3,4,5 the tree will be like
I have this code about binary search tree , I want Calculated efficancy for
I have a PHP script that builds a binary search tree over a rather
I have a binary search function that will search for a word in an
I have a binary file that I would like to regex search/replace hex bytes
i have implement binary search tree in c++ #include <iostream> #include <cstdlib> using namespace
I have been working on a simple binary search tree for a larger project.
I'm implementing some classes to handle the common data structures (Tree, BinaryTree, Search Binary
I have created a binary search tree with {2,5,3,4,9,1,7,...,100} digits. how can i save

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.