293 views
0 votes
0 votes
Concatenation of two lists need to be performed in O(1) time which one the following implementation of list could be used?

1) Single linked list

2) Doubly linked list

3)Circularly Double linked list

4)Array implementation of list

Its a one mark question,maybe very simple but I am not understanding the reasoning given,Answer given is 3. But that will require more pointers to change than just a single linked list?

Please log in or register to answer this question.

Related questions

2 votes
2 votes
0 answers
1
4 votes
4 votes
2 answers
4
Parth Shah asked Dec 11, 2018
1,433 views
Suppose binary tree has only three nodes A,B and C, and you are given the post order traversal of tree as B-A-C . The exact pre order traversal of the tree is?A)C-A-BB)A-...