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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:42:04+00:00 2026-06-07T12:42:04+00:00

I was asked in a interview about the difference between node structures of Doubly

  • 0

I was asked in a interview about the difference between node structures of Doubly linked list and binary Tree.

Doubly Linked List Struct

typedef struct
{
int data;
struct node * next;
struct node * prev;
}node;    

Binary Tree Struct

typedef struct
{
int data;
struct node * left;
struct node * right;
}node;  
  1. In Doubly linked list, we use pointers for traversing back and front in a linearly arranged list.
  2. But where as left & right pointers are used to access the left & right nodes.

I don’t find any difference in node structure except the way they are used. Could you please give me some differences???

  • 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-07T12:42:06+00:00Added an answer on June 7, 2026 at 12:42 pm

    I think you have answered your own questions. Other than the obvious differences in names of the pointers (next/prev and left/right), the differences are:

    • In a doubly linked list, if n.next links to m then m.prev links to n. This is not the case in a binary tree.
    • In a doubly linked list, a node can have at most two links to it. In a binary tree, each node has at most one link to it.
    • In a doubly linked list, it is possible to follows links and end up at the node where you started. This is not possible in a binary tree.

    If the doubly linked list is also cyclic, the following also holds:

    • In a cyclic doubly linked list with one node, n.next links to n and n.prev also links to n. This is not possible in a binary tree: n.left and n.right do not link to the same node.
    • In a binary tree with one node, n.next and n.prev could point to no node (i.e., the tree is just a leaf node) but in a cyclic doubly linked list with one node both links always have a value (albeit to the same node).
    • In a binary tree it is optional to have a value for either n.left or n.right. If the binary tree is not balanced, it could be that all nodes have a value for n.right but not for n.left. This is not the case for a cyclic doubly linked list where all pointers have a value.

    In terms of structure and content the nodes are the same but the differences are in how the pointers are used and what their values can be.

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

Sidebar

Related Questions

I'm asked about Display List architecture in Flex at an interview. Later I searched
I was asked in an interview to find if the single linked list has
Hi i was asked in an interview about this question. I did google a
I got asked the following question in an interview while talking about concurrency in
I had an interview recently and he asked me about Singleton Design Patterns about
I was recently asked in an interview about the parameter for a copy constructor.
I was asked about heap and stack memory structure in an interview. The guy
I have been asked a question in an interview about interfaces. I am not
I was recently asked a question, apparently in an Interview, about extending the java.lang.RuntimeException.
I have just finished a technical interview. The interviewer asked a question about the

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.