Can we remove an element in a single linked list without
traversing?
Lets suppose the link list is like this
1 2 3 4 5 6
We need to remove 4 from this list (without traversing from
beginning) and the final link list shud be 1 2 3 5 6
only thing we know is the pointer to element "4". How can
we remove "4" and link "3" to "5"?
Answer Posted / pradeep
its possible only if it is a doubly linked list.
| Is This Answer Correct ? | 3 Yes | 6 No |
Post New Answer View All Answers
When are exception objects created?
Explain what data encapsulation is in c++?
Is overriding possible in c++?
What are c++ tokens?
Is turbo c++ free?
Can class objects be passed as function arguments?
What is a container class?
Can I learn c++ in a week?
Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)
What causes a runtime error c++?
Does c++ support multilevel and multiple inheritances?
What is function overriding in c++?
What are the different types of comments allowed in c++?
Will this c++ program execute or not?
How const int *ourpointer differs from int const *ourpointer?