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 / vishal jagani
yes u can it link list(doubly),....
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What are destructors?
List the issue that the auto_ptr object handles?
What is meant by forward referencing and when should it be used?
Differentiate between a template class and class template in c++?
In a function declaration, what does extern mean?
Why is the function main() special?
Explain the properties and principles of oop.
Why do we use classes in programming?
What are the uses of typedef in a program?
Which function cannot be overloaded c++?
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
What is a c++ class?
What is the difference between the functions rand(), random(), srand() and randomize()?
Is it possible to provide special behavior for one instance of a template but not for other instances?
Explain the concept of copy constructor?