Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Doubly Linked List deleting a node - Example - Data Structure
Home
>>
Category
>>
Programming Language (MCQ) questions
>>
Data Structure
Q. What time is required for deleting a node ' x ' from a Doubly Linked List whose having ' n ' nodes?
- Published on 26 Aug 15
a.
O (n)
b.
O (log n)
c.
O (1)
d.
O (n log n)
ANSWER: O (1)
Related Content
Networking (
207
)
Database (
97
)
C programming (
58
)
Software Engineering (
28
)
SQL (
5
)
HTML (
74
)
Web Technologies (
11
)
Data Structure (
140
)
Operating System (
96
)
Java (
25
)
Oracle (
5
)
C++ (
50
)
Algorithms (
7
)
PL/SQL (
13
)
JavaScript (
7
)
XML (
0
)
CSS (
1
)
Discussion
Nirja Shah
-Posted on 21 Nov 15
Time required for deleting a node ' x ' from a Doubly Linked List whose having ' n ' nodes is O ( 1 ).
There are three parts in doubly linked list. The first part contains the address of the preceding elements in the list. The second part contains the information of the element and the third part contains the address of the succeeding elements in the list.
Deleting a node in doubly linked list is more efficient than in singly linked list.
➨
Post your comment / Share knowledge
Required!
Required!
Invalid Email Id!
Required!
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
MCQs
English
Tutorials
Download
▲